ios13

iOS 13 Segmented Control: Remove swipe gesture to select segment

六月ゝ 毕业季﹏ 提交于 2019-12-18 05:00:12
问题 TLDR: How to remove the swipe/pan gesture recognizer for UISegmentedControl on iOS 13? Hi, on iOS 13, lots changed with UISegmentedControl. Mostly, the changes were appearance-based. But there is another functionality change that is messing up my app. On iOS 13, with UISegmentedControls, you can now swipe/pan to change the selected segment in addition to touching the segment you would like to select. In my app, I basically have a UISegmentedControl embedded in a scrollview. The

Why is manually setup root view controller showing black screen?

流过昼夜 提交于 2019-12-18 04:22:01
问题 I have manually setup a root view controller for iOS 13 using Xcode 11, Beta 5. Deleted references to main in the deployment info including removing reference to main in info.plist which I never found myself having to do prior to iOS 13. Setup for window is done in SceneDelegate, nested in willConnectTo function. Normally the app would crash if I missed a step. Now I'm getting a blank black screen instead of seeing what my view controller is setup for, say a red background. All of this use to

Why is manually setup root view controller showing black screen?

一曲冷凌霜 提交于 2019-12-18 04:21:49
问题 I have manually setup a root view controller for iOS 13 using Xcode 11, Beta 5. Deleted references to main in the deployment info including removing reference to main in info.plist which I never found myself having to do prior to iOS 13. Setup for window is done in SceneDelegate, nested in willConnectTo function. Normally the app would crash if I missed a step. Now I'm getting a blank black screen instead of seeing what my view controller is setup for, say a red background. All of this use to

UIColor return wrong values for dark mode colors

99封情书 提交于 2019-12-18 01:10:35
问题 I have a custom UITextField subclass which changes its border color when typing something in it. I'm listening for changes by calling self.addTarget(self, action: #selector(textFieldDidChange(_:)), for: .editingChanged) and then, in textFieldDidChange(_:) I'm doing: self.layer.borderColor = UIColor(named: "testColor")?.cgColor Where testColor is a color defined in Assets.xcassets with variants for light and dark mode. The issue is that UIColor(named: "testColor")?.cgColor seems to always

iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback

家住魔仙堡 提交于 2019-12-17 23:47:19
问题 After upgrading to iOS beta 13 I've noticed an unpleasant thing: my app crashes sometimes on incoming VoIP pushes. In the crash report I see the following: iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x1af21b9f0 __exceptionPreprocess 1 libobjc.A.dylib 0x1af7284fc objc_exception_throw 2 CoreFoundation 0x1af11efec + [_CFXNotificationTokenRegistration

Is it possible to opt-out of dark mode on iOS 13?

元气小坏坏 提交于 2019-12-17 07:54:31
问题 A large part of my app consists of web views to provide functionality not yet available through native implementations. The web team has no plans to implement a dark theme for the website. As such, my app will look a bit half/half with Dark Mode support on iOS 13. Is it possible to opt out of Dark Mode support such that our app always shows light mode to match the website theme? 回答1: First, here is Apple's entry related to opting out of dark mode. The content at this link is written for Xcode

Is it possible to opt-out of dark mode on iOS 13?

懵懂的女人 提交于 2019-12-17 07:54:11
问题 A large part of my app consists of web views to provide functionality not yet available through native implementations. The web team has no plans to implement a dark theme for the website. As such, my app will look a bit half/half with Dark Mode support on iOS 13. Is it possible to opt out of Dark Mode support such that our app always shows light mode to match the website theme? 回答1: First, here is Apple's entry related to opting out of dark mode. The content at this link is written for Xcode

Detecting sheet was dismissed on iOS 13

痞子三分冷 提交于 2019-12-17 06:43:13
问题 Before iOS 13, presented view controllers used to cover the entire screen. And, when dismissed, the parent view controller viewDidAppear function were executed. Now iOS 13 will present view controllers as a sheet as default, which means the card will partially cover the underlying view controller, which means that viewDidAppear will not be called, because the parent view controller has never actually disappeared. Is there a way to detect that the presented view controller sheet was dismissed

Disable gesture to pull down form/page sheet modal presentation

自古美人都是妖i 提交于 2019-12-17 04:02:45
问题 In iOS 13 modal presentations using the form and page sheet style can be dismissed with a pan down gesture. This is problematic in one of my form sheets because the user draws into this box which interferes with the gesture. It pulls the screen down instead of drawing a vertical line. How can you disable the vertical swipe to dismiss gesture in a modal view controller presented as a sheet? Setting isModalInPresentation = true still allows the sheet to be pulled down, it just won't dismiss.

Disable gesture to pull down form/page sheet modal presentation

喜欢而已 提交于 2019-12-17 04:02:01
问题 In iOS 13 modal presentations using the form and page sheet style can be dismissed with a pan down gesture. This is problematic in one of my form sheets because the user draws into this box which interferes with the gesture. It pulls the screen down instead of drawing a vertical line. How can you disable the vertical swipe to dismiss gesture in a modal view controller presented as a sheet? Setting isModalInPresentation = true still allows the sheet to be pulled down, it just won't dismiss.