ios13

traitCollectionDidChange strange behavior

时光怂恿深爱的人放手 提交于 2021-02-19 01:49:32
问题 override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { super.traitCollectionDidChange(previousTraitCollection) if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) { print("changed") } } The iOS 13 application just goes to background without changing the mode (light/dark) but the "print" function is called. Is it possible to determine the moment when the mode really changed? Thank You. 回答1: I observed this myself as well. The

traitCollectionDidChange strange behavior

冷暖自知 提交于 2021-02-19 01:49:05
问题 override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { super.traitCollectionDidChange(previousTraitCollection) if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) { print("changed") } } The iOS 13 application just goes to background without changing the mode (light/dark) but the "print" function is called. Is it possible to determine the moment when the mode really changed? Thank You. 回答1: I observed this myself as well. The

Ionic Cordova - iPhone X safe area has changed with iOS 13+

我与影子孤独终老i 提交于 2021-02-17 06:35:07
问题 I'm writing an app with cordova, Ionic v1, and AngularJS 1.5.3. ionic info Ionic: ionic (Ionic CLI) : 4.10.3 (C:\Users\User\node_modules\ionic) Ionic Framework : ionic1 1.3.5 @ionic/v1-toolkit : 1.0.22 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 8.1.0, ios 6.1.0, browser 5.0.4, windows 4.4.3 Cordova Plugins : cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins) System: Android SDK Tools : 26.1.1 (C:\Users\User\Documents\Android\sdk) NodeJS :

Xcode 10 Main Thread Checker: Cordova Camera Plugin

↘锁芯ラ 提交于 2021-02-10 05:31:47
问题 Following iOS13 release, I'm testing a hybrid app using Cordova. Launching the camera is very slow and generates the following: ================================================================= Main Thread Checker: UI API called on a background thread: -[UIImagePickerController init] PID: 1347, TID: 618928, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0 Backtrace: 4 0x0000000100f1bba0 +[CDVCameraPicker createFromPictureOptions:] + 124 5 0x0000000100f15d54 -[CDVCamera

preferredStatusBarStyle not getting called in iOS 13 and other

ⅰ亾dé卋堺 提交于 2021-02-07 14:25:19
问题 I have multiple UITabBar in my application and some ViewController has White color statusbar and some ViewController has black color statusbar. My info.plist View controller-based status bar appearance to YES My Viewcontroller has below code. override var preferredStatusBarStyle: UIStatusBarStyle { return .default //or return . lightContent } but preferredStatusBarStyle never getting called. i have also written below line in my controller viewDidLoad but still above wasn't getting called.

Crash when adopting NSSecureUnarchiveFromDataTransformer for a Transformable property

喜你入骨 提交于 2021-02-07 06:47:15
问题 In iOS 12 Apple introduced NSSecureUnarchiveFromDataTransformerName for use on CoreData model entities' Transformable properties. I used to keep the Transformer Name field empty, which implicitly used NSKeyedUnarchiveFromDataTransformerName . This transformer is now deprecated, and keeping the field empty in the future will mean NSSecureUnarchiveFromDataTransformerName instead. In iOS 13, if that field is empty, you now get a runtime warning telling you the aforementioned. I couldn't find any

Push notification not register to the app on iOS 13

僤鯓⒐⒋嵵緔 提交于 2021-02-07 05:01:11
问题 I build my app and I put a breakpoint in didRegisterForRemoteNotificationsWithDeviceToken but it's not triggered. It works fine on other versions of iOS. Is this a bug in iOS 13 or did I miss something new in iOS 13? I use Xcode Beta 6 and iOS 13 beta 8. 回答1: The aforesaid problem could also be resolved by reconnecting wifi or switching between wifi and cellular data. Moreover, following changes in iOS 13 affected push notification implementation. Prior to iOS 13 many of us used to do

didReceiveRemoteNotification not called in iOS 13.3 when app is in background

折月煮酒 提交于 2021-02-06 15:14:28
问题 I am banging my head. I am implementing push notification. Everything is working fine (push is received, badge is updated) but under iOS 13.3 the method application(_:didReceiveRemoteNotification:fetchCompletionHandler:) is not called when the app is in the background. If the app is in the foreground or using an iOS 12 device the method is called. I register for push notification in the following way: [[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:

SelectedTintColor of Segment Control is not rounded corner on iOS 13

China☆狼群 提交于 2021-02-06 09:25:08
问题 Rounded corner is working great on iOS 12 and below, but it's broken on iOS 13. I've created a custom Segment control class. Code: class SegmentedControl: UISegmentedControl { override func layoutSubviews() { super.layoutSubviews() layer.cornerRadius = self.bounds.size.height / 2.0 layer.borderColor = UIColor(red: 170.0/255.0, green: 170.0/255.0, blue: 170.0/255.0, alpha: 1.0).cgColor layer.borderWidth = 1.0 layer.masksToBounds = true clipsToBounds = true } } I've gone through this post - How

SelectedTintColor of Segment Control is not rounded corner on iOS 13

家住魔仙堡 提交于 2021-02-06 09:22:50
问题 Rounded corner is working great on iOS 12 and below, but it's broken on iOS 13. I've created a custom Segment control class. Code: class SegmentedControl: UISegmentedControl { override func layoutSubviews() { super.layoutSubviews() layer.cornerRadius = self.bounds.size.height / 2.0 layer.borderColor = UIColor(red: 170.0/255.0, green: 170.0/255.0, blue: 170.0/255.0, alpha: 1.0).cgColor layer.borderWidth = 1.0 layer.masksToBounds = true clipsToBounds = true } } I've gone through this post - How