ios11

SKPaymentTransactionObserver `In-app purchases can’t be promoted on the App Store` on iTunes connect but delegate implemented and tested

流过昼夜 提交于 2019-12-05 11:05:34
We keep getting this warning message in Itunes connect after implementation and test of the delegate method: These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver method. We implemented the delegate method for the new App Store purchase from iOS 11 in a dedicated object that manages our payments and other SKPaymentTRansactionObserver. func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool { let isProUser = userDataService.isUserPro let isUserLoggedIn

Bluetooth didConnect or didFailToConnect not called Xcode 9.2 with iOS 11.1.2

ε祈祈猫儿з 提交于 2019-12-05 10:51:05
I am having the problem with Xcode 9.2 and iOS 11.1.2,"didDiscover" is working fine and my peripheral is saved in an array before I call connect, but "didConnect" or "didFailToConnect" not called, so the peripheral state will stay at "connecting"... Please help var manager: CBCentralManager! override func viewDidLoad() { super.viewDidLoad() manager = CBCentralManager(delegate: self, queue: nil) //manager = CBCentralManager (delegate: self, queue: DispatchQueue.main) //manager = CBCentralManager.init(delegate: self, queue: nil, options:[:]) //manager.delegate = self } func centralManager(_

iOS 11 issues with Refresh Controller and navigationBar that has prefersLargeTitles set to true

喜你入骨 提交于 2019-12-05 09:02:00
I am using a navigation controller and within that navigation controller, I have a VC with a tableview that is hugging the top, bottom, left and right sides of the superView. When I have self.navigationController?.navigationBar.prefersLargeTitles set to false, everything works fine. But when I set it to true, I have to drag really really far down to get my refresh controller to trigger the refresh. This is fixed by simply tapping one cell which then goes into the detail view and then pressing the back button from the detail view to go back to the vc with the main tableview and refresher. After

Xcode 9 iOS 10 / 11 Simulators - All Apps Crashing [duplicate]

别来无恙 提交于 2019-12-05 08:01:53
问题 This question already has an answer here : Xcode 9 iOS Simulator - Unable To Obtain Valid Process Handle (1 answer) Closed 2 years ago . I just installed Xcode 9 and tried running the iOS 11 and 10.3.1 simulators. Weirdly, ALL the stock apps in the simulator are crashing / force closing the moment I click on any of them, i.e. Safari, Photos, etc. I've tried it on iPhone X, iPhone 8/8+ and iPhone 6+ simulators with iOS 11 / 10.3.1, all with the same crashing result. If I try it on older iOS

AVPlayerViewController black screen when swiping on iOS 11

六月ゝ 毕业季﹏ 提交于 2019-12-05 06:22:20
I'm using AVPlayerViewController to play a video file (H.264, AAC, MP4-Container) on an iPad-App. Everything is working in iOS 10. And also in iOS 11 it plays the video correctly. But in iOS 11, when I start swiping in any direction, it immediately blacks out the video and also mutes audio. It also shows a loading indicator next to the timeline on the bottom. Also it ignores the allowsPictureInPicturePlayback property, so it doesn't show the PIP-Button on iOS 11. This is the code I use: avPlayerController = AVPlayerViewController() avPlayerController?.showsPlaybackControls = true

dyld: Library not loaded: @rpath/CoreNFC.framework/CoreNFC, iOS11 and Xcode 9 beta

给你一囗甜甜゛ 提交于 2019-12-05 06:04:09
I get this error and app get crash while run CoreNFC sample code in Xcode 9.0 beta 2 dyld: Library not loaded: @rpath/CoreNFC.framework/CoreNFC Referenced from: /var/containers/Bundle/Application/2837709C-C852-4811-B696-38F2725554D4/iOS-11-by-Examples.app/iOS-11-by-Examples Reason: image not found Does anyone knows how to fix this? I combined some answers together to fix this thanks to @Chinchan Zu's comment here is how to mark Core NFC as Optional stackoverflow question First you make import to NFCCore in "Linked Frameworks and Libraries" as optional as in this screenshot Then inside your

Open iOS 11 Files app via URL Scheme or some other way

早过忘川 提交于 2019-12-05 05:08:39
My app is now sharing Documents directory on iOS 11 Files app "On My iPhone" section. (Thanks to this article: Working with the Files App in iOS 11 ) Question is how to open this directory or at least File app root page via URL Scheme. UIDocumentPickerViewController or UIDocumentBrowserViewController doesn't help in this situation. The Files app can be opened with the URL scheme shareddocuments:// . I don’t know if there’s a way to open a specific directory however. 来源: https://stackoverflow.com/questions/46499842/open-ios-11-files-app-via-url-scheme-or-some-other-way

Password AutoFill for iOS App

谁都会走 提交于 2019-12-05 05:07:39
In iOS 11 they have introduced password autofill which fills the username and password in iOS app like the same way it does in Safari, User goes to website first, logged in save the username and password in keychain and then open app were the fields are automatically populated, the username and password can it be implemented in other ways, like I logged in the app first and then while going on the website through Safari it automatically fills the username and password? Is there any documentation or articles regarding it? I asked about this at the developer labs at WWDC and was informed that it

Core Image filter CISourceOverCompositing not appearing as expected with alpha overlay

五迷三道 提交于 2019-12-05 04:24:39
I’m using CISourceOverCompositing to overlay text on top of an image and I’m getting unexpected results when the text image is not fully opaque. Dark colors are not dark enough and light colors are too light in the output image. I recreated the issue in a simple Xcode project . It creates an image with orange, white, black text drawn with 0.3 alpha, and that looks correct. I even threw that image into Sketch placing it on top of the background image and it looks great. The image at the bottom of the screen shows how that looks in Sketch. The problem is, after overlaying the text on the

invalid reference image arkit 1.5

蹲街弑〆低调 提交于 2019-12-05 04:11:05
I am running the apple sample project of ARKit 1.5 Image detection but when I place my reference image inside AR Resource folder and run the app I get following error: Make sure all reference images are greater than 100 pixels and have a positive physical size in meters. I don't find any predefined requirements of how should the image be, can anyone explain the required attributes of the image? As in Apple's documentation For each image, use the inspector to describe the physical size of the image as you’d expect to find it in the user’s real-world environment, and optionally include a