ios11

How to get the original_application_version (the first purchased version number) out of iOS Receipt in iOS 11?

帅比萌擦擦* 提交于 2019-12-01 15:45:52
问题 I have a paid iOS App. I need to get the original_application_version number (the first version purchased by the user) from the Apple AppStore Receipt. To get the receipt, when my app loads, I use checkReceiptFromAppStore() function: func checkReceiptFromAppStore() { let receipt = self.getReceipt() print("receipt Data is: \(receipt)") // prints this: receipt Data is: Optional(5141 bytes) } getReceipt() function is the following: func getReceipt() -> Data? { if Bundle.main.appStoreReceiptURL !

Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]

99封情书 提交于 2019-12-01 15:15:15
问题 Xcode 9 seems to be reporting a lot of Main thread calls to UIApplication properties. Even though the UI is not being updated this is particularly cumbersome due to the extension of logs it produces a default environment. 4 TestApp 0x0000000101c262e0 __39-[ViewController viewDidLoad]_block_invoke + 196 5 libdispatch.dylib 0x0000000102279654 _dispatch_call_block_and_release + 24 6 libdispatch.dylib 0x0000000102279614 _dispatch_client_callout + 16 7 libdispatch.dylib 0x0000000102289008

Cropped characters - iOS11 - Alert Dialog

拟墨画扇 提交于 2019-12-01 14:24:29
Cropped characters - iOS11 - Alert Dialog. How to fix it? [ func settingsButtonPressed() { let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) let closeAction = UIAlertAction(title: "Anuluj", style: .cancel) { (action) in //do nothing } alert.addAction(closeAction) let restorePurchases = UIAlertAction(title: "Przywróć zakupy", style: .default) { (action) in self.restorePurchases() } alert.addAction(restorePurchases) let refreshCatalogs = UIAlertAction(title: "Odśwież", style: .default) { (action) in self.collectionView.reloadData() } alert.addAction

Top and bottom of iOS 11.1 games unresponsive to touch

前提是你 提交于 2019-12-01 13:10:47
问题 Since installing iOS 11.1 we have observed that a strip along the top and bottom of the screen has become unresponsive to touches. This affects both a landscape app and a portrait app which I develop for (they use metal API for rendering). The issue has also been observed on some other developer's apps e.g. Golf Clash but not others - as we use an in-house engine there is no shared code between our apps and other developer's apps. Is this a functionality change or known issue with workaround?

iOS11 photo library access is possible even if settings are set to “never”

旧巷老猫 提交于 2019-12-01 12:10:47
if UIImagePickerController.isSourceTypeAvailable(.photoLibrary) { let imagePicker = UIImagePickerController() imagePicker.sourceType = .photoLibrary imagePicker.allowsEditing = true self.present(imagePicker, animated: true, completion: { }) } Even if I set access to Photos in Settings to "Never" with above code I can still present image picker and show photos. I'll check for PHPhotoLibrary.authorizationStatus() before showing it, but I would like to know is this expected behaviour? Okay, you can sort of piece this together from answers and comments already, but to try to tell a more complete

Navigation Bar issue in iPhone X? [duplicate]

孤街浪徒 提交于 2019-12-01 10:46:40
This question already has an answer here: Seeing black bars at the top and bottom of the iPhone X Simulator 9 answers When I am running the project in iPhone X is getting black space above navigation bar as shown, not getting the color as same. How to solve this? I suppose you are not using storyboard for launch screen. There are two options to fix this. Use storyboard as LaunchScreen. If you are using Launch Image Source for launch screen add launch screen image for iPhoneX. 来源: https://stackoverflow.com/questions/46909424/navigation-bar-issue-in-iphone-x

How to apply iOS VNImageHomographicAlignmentObservation warpTransform?

懵懂的女人 提交于 2019-12-01 09:24:00
I'm testing Apple's Vision Alignment API and have questions regarding VNHomographicImageRegistrationRequest. Has anyone got it to work? I can get the warpTransform out of it, but I've yet to see a matrix that makes sense, meaning, I'm unable to get a result that warps the image back onto the source image. I'm using Opencv warpPerspective to handle the warping. I'm calling this to get the transform: class func homography(_ cgImage0 : CGImage!, _ cgImage1 : CGImage!, _ orientation : CGImagePropertyOrientation, completion:(matrix_float3x3?)-> ()) { let registrationSequenceReqHandler =

Navigation Bar issue in iPhone X? [duplicate]

房东的猫 提交于 2019-12-01 08:43:52
问题 This question already has answers here : Seeing black bars at the top and bottom of the iPhone X Simulator (9 answers) Closed 2 years ago . When I am running the project in iPhone X is getting black space above navigation bar as shown, not getting the color as same. How to solve this? 回答1: I suppose you are not using storyboard for launch screen. There are two options to fix this. Use storyboard as LaunchScreen. If you are using Launch Image Source for launch screen add launch screen image

iOS 11 Safari HTML - Disable “Smart Punctuation”?

[亡魂溺海] 提交于 2019-12-01 08:10:48
Is there a good way to disable the " Smart Punctuation" the iOS 11 Apple Keyboard generates - in Safari on an HTML login form - username field in particular? The problem is that we have users with apostrophes in their usernames. Typing their usernames on iOS 11 and not knowing the subtleties of unicode they are not able to sign in. Ideally we could just instruct such users to disable smart quotes or type the proper character by holding down the apostrophe key - but I am working on educational software for small children and that is out of the question. The problem is compounded by the fact

Apple reject my app because of not include functionality to allow users to view or select items from the Files app

浪尽此生 提交于 2019-12-01 07:34:20
问题 In my app I am get video from gallery using below method: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { } But Apple is rejected app and required to include functionality to select video items from Files app. Here is Apple give me the reason: We noticed that your app enables users to view and select files, but it does not include functionality to allow users to view or select items from the Files app and the user's iCloud