ios11

How to handle shouldAddStorePayment for In-App Purchases in iOS 11?

♀尐吖头ヾ 提交于 2019-12-10 02:50:06
问题 I'm trying to implement that new paymentQueue(_:shouldAddStorePayment:for:) method so my app can handle IAPs directly from the App Store. I'm using the itms-services:// url to test it, like it says here. The thing is, my SKPaymentTransactionObserver is a specific view controller, and if it's not visible when I open the itms-services:// link the delegate method won't be called. What can I do about that? I think I'd have to detect if the user is coming from the App Store to push the right view

Custom button not working in AVPlayer iOS 11 but it's perfectly working below iOS 11?

元气小坏坏 提交于 2019-12-09 23:45:45
问题 I know possibly this is duplicate question but the question which is already exist didn't have an solution so , I'm asking again to possibly start bounty question . Here is my code which is working below iOS 11 : AVPlayer *player = [AVPlayer playerWithURL:videoURL]; // create a player view controller avcontroller = [[AVPlayerViewController alloc]init]; avcontroller.player = player; [player play]; NSNotificationCenter *noteCenter = [NSNotificationCenter defaultCenter]; [noteCenter

In iOS 11, how to make core data searchable in core spotlight

断了今生、忘了曾经 提交于 2019-12-09 18:49:32
问题 As mentioned at WWDC, iOS 11 should have support to index Core Data so that it is searchable via Spotlight. This is the WWDC presentation: https://developer.apple.com/videos/play/wwdc2017/210/ However, after watching the video and looking at docs, I still have no idea how to setup my core data objects so they are searchable from the phones spotlight search. I guess the main questions are: 1.) How do you actually set which attributes of a certain object type are searchable. 2.) How do you

UINavigationController method setToolbarHidden bug in Xcode 9: infinite calculation of auto-layout constraints leads to OOM

丶灬走出姿态 提交于 2019-12-09 18:01:23
问题 I have an instance of UINavigationController nested in UITabBarController . I use the navigation controller to reach some view controller (tab bar still visible), from which I segue to a second view controller (tab bar no longer visible). In the second view controller, as soon as I make a call to: [self.navigationController setToolbarHidden:NO] the app freezes and memory grows until OOM exception crashes it. I acknowledge that nesting the navigation controller inside the tab bar is not

ios 11 Beta 5 select drop-down list issue

半腔热情 提交于 2019-12-09 17:05:11
问题 HTML Select drop-down list is not getting dismissed properly on iOS 11 beta 5. Upon closing the drop-down, an empty drop-down with blank options reappears in its place. Please let me know if anyone else experienced the same issue and if a workaround is available for the same. Note: It is a hybrid app built for iPad only and this issue is not reproducible on iOS 10 or below. 回答1: I've had a similar issue and discovered that in the <option> tag there is a label="" value. This only affects iOS

ios11 webview html canvas content got cleared by page scroll

旧街凉风 提交于 2019-12-09 06:44:59
问题 The html page I made by using canvas becomes different in ios11! When first show in the webview, the page looks fine, but, when it scrolls down and the canvas in it becomes invisible in the viewport, the content in the canvas disappears and never comes back when the page scroll back to top. Does somebody know how to fix this problem or I should just wait until apple fixes it later? 回答1: Same problem for me. I noticed that if I toggle in Safari Web Inspector any properties of the canvas, it is

UIViewPropertyAnimator different behaviour on iOS10 and iOS11 reversing an animation. Bug on `isReversed` and `fractionComplete` properties?

戏子无情 提交于 2019-12-09 05:52:36
问题 THE PROBLEM Running the same code on iOS10 and iOS11 my UIViewPropertyAnimator has a different behaviour just after changing of his .isReversed property. Everything is ok on iOS10. The animation problem happens on iOS11 CONDITIONS It's true for any animations, not only for a particular one, and it is verifiable both by watching the animation and within the code. It happens both on simulators and real devices. DETAILS Once created a UIViewPropertyAnimator with his animation, during its running

iOS 11/Xcode 9: UITableViewCell white background flickers on delete

筅森魡賤 提交于 2019-12-09 05:20:17
问题 On iOS 11 device on deleting a UITableViewCell unexpected white background appears for some reason however all background colors are set to blue in storyboard (works fine on iOS10). - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [self.bookmarks removeObjectAtIndex:indexPath.row]; [self.tableView deleteRowsAtIndexPaths:@[indexPath]

Hide large title when scrolling up

心已入冬 提交于 2019-12-09 02:34:41
问题 I have a normal view controller that is embedded in a navigation controller. In this view controller, I have a table view that is using the constraints of the safe area. (I don't use a table view controller) The navigation controller is set to prefer large titles and the mode is set to .always. In beta 2 this worked perfectly, So when I came in the title was large and when I scrolled down it became small (Like the normal one). But since beta 3 this doesn't work anymore. Anyone know how to

iOS - Face ID biometric integration

纵然是瞬间 提交于 2019-12-08 19:08:31
问题 I've integrated/implemented Face ID (Local Authentication) authentication for my app and everything works fine, except Face ID prompt Alert window interface. It shows, a rounded square with a light gray background and the title "Face ID" . What should need to set for blank area exact above title? Is that space for face id icon? if yes then how can I set it? I've tried everything in LAContext and LAPolicy. Look at this snapshot: Here is my code: let laContext = LAContext() var error: NSError?