ios13

Navigation Bar's content partially not visible in modal on iOS 13

大兔子大兔子 提交于 2020-06-27 20:15:05
问题 A storyboard based application is having issue rendering the navigation bar's content when the navigation bar is displayed in a modal screen, but only when on a physical device. The code behaves properly in iOS 12 and in all simulators both iOS 12 and iOS 13.2.2. On the left of the screenshot is a iPhone 11 simulator running iOS 13.2.2; on the right is a Reflector projection of my iPhone Xs running iOS 13.2.2 of the same code. We can see there's a space between the tableview and the

Navigation Bar's content partially not visible in modal on iOS 13

北战南征 提交于 2020-06-27 20:14:18
问题 A storyboard based application is having issue rendering the navigation bar's content when the navigation bar is displayed in a modal screen, but only when on a physical device. The code behaves properly in iOS 12 and in all simulators both iOS 12 and iOS 13.2.2. On the left of the screenshot is a iPhone 11 simulator running iOS 13.2.2; on the right is a Reflector projection of my iPhone Xs running iOS 13.2.2 of the same code. We can see there's a space between the tableview and the

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread'

坚强是说给别人听的谎言 提交于 2020-06-27 18:31:58
问题 I'm having an issue where our application is crashing when the user taps the profile picture to upload their photo to the app. The app sends an authorization request to the user, and this crash happens immediantly once the "allow" button is tapped. Maybe relevant information is that this is not the root view controller. The registration process has a series of pages on the same Storyboard. This is occuring on any page where I need to request permissions that isn't the main root controller. I

NSInternalInconsistencyException while running VOIP enabled apps on iOS13

蓝咒 提交于 2020-06-27 18:00:32
问题 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks.' This error is displayed on xcode 11 Beta that uses iOS 13. No issue on xcode10. PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks. #voip 回答1: Embedding CallKit.framework in General Settings of the Project resolves this issue. On iOS 13, Apple now mandates that

NSInternalInconsistencyException while running VOIP enabled apps on iOS13

我是研究僧i 提交于 2020-06-27 18:00:06
问题 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks.' This error is displayed on xcode 11 Beta that uses iOS 13. No issue on xcode10. PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks. #voip 回答1: Embedding CallKit.framework in General Settings of the Project resolves this issue. On iOS 13, Apple now mandates that

iOS 13, Custom Image, title and subtitle in the presented UIActivityViewController

我们两清 提交于 2020-06-27 03:48:12
问题 I would like to know if there is any way to customise the image, title and subtitle of presented UIActivityViewController in iOS 13? 回答1: I have found a solution using UIActivityItemSource UIActivityItemSource have this protocol activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? which we can use to set image title and subtitle for our UIActivityViewController This is an example: public func activityViewControllerLinkMetadata(_

iOS 13, Custom Image, title and subtitle in the presented UIActivityViewController

妖精的绣舞 提交于 2020-06-27 03:48:08
问题 I would like to know if there is any way to customise the image, title and subtitle of presented UIActivityViewController in iOS 13? 回答1: I have found a solution using UIActivityItemSource UIActivityItemSource have this protocol activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? which we can use to set image title and subtitle for our UIActivityViewController This is an example: public func activityViewControllerLinkMetadata(_

NSPersistentStoreRemoteChangeNotification not getting fired

会有一股神秘感。 提交于 2020-06-25 20:19:39
问题 I am trying to perform history tracking in my CoreData+CloudKit project which uses NSPersistentCloudKitContainer . I have been following along with Apple's sample project I want to perform certain task when the remote store has been updated. For this apple recommends enabling remote notification in the Signing & capabilities's Background Mode section of the app. I have enabled History Tracking for my project as shown in Apple's sample project. // turn on persistent history tracking let

NSPersistentStoreRemoteChangeNotification not getting fired

我只是一个虾纸丫 提交于 2020-06-25 20:18:29
问题 I am trying to perform history tracking in my CoreData+CloudKit project which uses NSPersistentCloudKitContainer . I have been following along with Apple's sample project I want to perform certain task when the remote store has been updated. For this apple recommends enabling remote notification in the Signing & capabilities's Background Mode section of the app. I have enabled History Tracking for my project as shown in Apple's sample project. // turn on persistent history tracking let

How to detect iPad Pro as iPad using javascript?

穿精又带淫゛_ 提交于 2020-06-25 10:35:08
问题 We were able to detect an iPad device using javascript like this: function isDeviceiPad(){ return navigator.platform.match(/iPad/i); } That worked perfectly in detecting iPad devices, but when we checked from an iPad Pro (10.5 inch) , it does not detect that it is an iPad. To further investigate, we drilled down into the navigator object, checked both platform and userAgent , and got these results: navigator.platform = 'MacIntel'; navigator.userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X