ios10

Auto Layout constraint change does not animate

强颜欢笑 提交于 2019-11-28 23:50:50
I was learning the auto layout with animations from the tutorial http://weblog.invasivecode.com/post/42362079291/auto-layout-and-core-animation-auto-layout-was and things were working perfect. When I tried to use this concept in my application, trying to animate a settings screen(a UIView) from bottom to top,it works great when the settings screen is just an empty UIView, But in case I add a UILabel as a subview to this settings screen, the animation just vanishes. On removing this UILabel form the settings screen, the animation is visible. Here are the outlets that I have connected __weak

How to use Notification service extension with UNNotification in iOS10

独自空忆成欢 提交于 2019-11-28 23:42:36
Apple introduce new extension names "UNNotificationServiceExtension" , but how to launch it from push notification ? I read that service extension provide end to end encryption for payload. Which key is required to set payload of push notification ? How to identify payload and how to launch service extension from push notification ? Let me take it step by step. UNNotificationServiceExtension - What it is? UNNotificationServiceExtension is an App Extenstion target that you bundle along with your app aiming to modify the push notifications as and when they are delivered to the device before

Google Sign In not working on iOS 10 Beta 7 with Xcode 8 beta 6

混江龙づ霸主 提交于 2019-11-28 23:34:49
I have an app in the app store which worked perfectly fine till first few betas of iOS 10 (i am not exactly sure which one). It also works perfectly fine on iOS 9.3. However I am not testing on iOS 10 beta 7 and the google sign in is completely broken. I am using the latest version of GIDSignIn from cocoapods . Here's my code: [GIDSignIn sharedInstance].clientID = [[ParseFetcher sharedInstance] getRandomParseK]; [GIDSignIn sharedInstance].delegate = sharedInstance; [GIDSignIn sharedInstance].uiDelegate=sharedInstance; [GIDSignIn sharedInstance].scopes = [NSArray arrayWithObjects:@"https://www

Can't create a range in Swift 3

非 Y 不嫁゛ 提交于 2019-11-28 23:17:30
I am trying to make a range in Swift 3 that I already had in Swift 2 but it keeps giving me this error: String may not be indexed with 'Int', it has variable size elements Here is my code: let range = expireRange!.startIndex.advancedBy(n: 7) ..< expireRange!.startIndex.advancedBy(n: 16) expiredRange is a Range<Index>? In Swift 2, I had: let range = expireRange!.startIndex.advancedBy(7)...expireRange!.startIndex.advancedBy(16) Martin R In Swift 3, "Collections move their index", see A New Model for Collections and Indices on Swift evolution. Here is an example for String ranges and indices: let

Alert from os: app may slow down your iPhone

爱⌒轻易说出口 提交于 2019-11-28 23:11:55
Hy, I have uploaded the app to App Store with both architecture. Please see the attached image for Build Settings of TARGETS in Architectures . And luckily it get Ready for sale, but iPhone 5s giving alert. The alert is: "APP" may slow down your iPhone. The developer of this app needs to update it to improve its compatibility. I googled but do not found solution to get rid off this alert. On other hand i also need to support iPhone5 and prior (32 bit architectures). Please help. Check if you have 'Architecture Priority' LSArchitecturePriority in your Info.plist. I had Intel (32-bit) for some

The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data

依然范特西╮ 提交于 2019-11-28 22:23:48
Got a build rejection The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data. The app does not use microphone. Or so I think. How do I track down where mic is used? UPD23112016: given that the lazy answer is being upvoted I've filed a new feature request with apple to close this security hole. UPD05042017: it is still bothersome that once you proxy mic access into some 3rd party framework via some half baked NSMicrophoneUsageDescription you have zero control on where and when it can be used if user agrees to

(NSFetchedResultsController): couldn't read cache file to update store info timestamps

谁都会走 提交于 2019-11-28 22:11:38
问题 I upgraded my project to Xcode 8. Now, I'm getting this error log with Xcode 8 and iOS 10 combination. Setting the cacheName to nil in the below code seems fix it. NSFetchedResultsController *frc = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:self.managedObjectContext sectionNameKeyPath:NULL cacheName:@"myCache"]; What should I do to get rid of this error log and use cache in my FRC? 回答1: This error should not be ignored because it can cause app

iOS 10.0 - 10.1: AVPlayerLayer doesn't show video after using AVVideoCompositionCoreAnimationTool, only audio

给你一囗甜甜゛ 提交于 2019-11-28 21:52:09
Here is a complete project if you care to run this yourself: https://www.dropbox.com/s/5p384mogjzflvqk/AVPlayerLayerSoundOnlyBug_iOS10.zip?dl=0 This is a new problem on iOS 10, and it has been fixed as of iOS 10.2. After exporting a video using AVAssetExportSession and AVVideoCompositionCoreAnimationTool to composite a layer on top of the video during export, videos played in AVPlayerLayer fail to play. This doesn't seem to be caused by hitting the AV encode/decode pipeline limit because it often happens after a single export, which as far as I know only spins up 2 pipelines: 1 for the

What is the height of the new iOS 10 Today Widget/Extension?

本小妞迷上赌 提交于 2019-11-28 21:49:49
问题 I am building an iOS Today widget, and while testing for iOS 10 I noticed that all widgets are now being given the same height (previous versions allowed the dev to set the height). What is the ideal height/what is the best practice for dealing with this new limitation? I'm in swift and I didn't use autolayout fyi. Thanks in advance! 回答1: In iOS 10, by default, the height of today widget is fixed. Moreover, the minimum height of collapsed widget is limited. A collapsed widget is the height of

WKWebView not rendering correctly in iOS 10

时光怂恿深爱的人放手 提交于 2019-11-28 21:10:12
I have WKWebView inside the UITableViewCell. The web view load request and then after finished loading, I'll resize the web view height to be equal to its content height, then adjust table view cell height to fit accordingly. What happened was the web view only displays the area that fit the screen size. When I scroll down, everything is white. But I see that the web view rendered with correct height, tap and hold on the white area on the web view still see selection. Zooming with pinch makes the web view area that displaying on the screen visible, but other areas sometimes become white. It