ios10

UIImagePickerController's cameraViewTransform is ignoring 'scaling' and 'translation' on iOS 10 beta

两盒软妹~` 提交于 2019-11-30 18:43:29
I have been using below code to scale my UIImagePickerController's live preview to fill the entire screen. This worked perfectly till now. Before few days, I installed iOS 10 beta 7 on an iPhone 5 and it doesn't scale anymore. I can see black patch at the bottom of UIImagePickerController's view. Seems like cameraViewTransform is ignoring the CGAffineTransformMakeScale and CGAffineTransformMakeTranslation calls. This is how I initiate my camera controller. I have set both "allowsEditing" and "showsCameraControls" to 'NO' in order to provide my own custom overlay view. objImagePickerController

How to Localize Push Notification Permission Dialog alert?

陌路散爱 提交于 2019-11-30 17:31:32
I am trying from the last 3 hours but not able to find any method to localize it. I am using iOS 10.0 means UNUserNotificationCenter. I want to localize it in Spanish-Mexico(es-MX) Language. Axel The only post I have found is Customizing the iOS permission dialog for push notifications Unfortunately, it is not possible to change the text / localisation of the message. You can change the messages for location permission, camera usage description, photo library usage description etc by adding a new file InfoPlist.strings and add strings for supported languages against keys NS*UsageDescription in

How to open WIFI setting in Swift 3

半城伤御伤魂 提交于 2019-11-30 17:29:26
问题 I want to open WIFI setting section from my iOS application, my code was working well before Swift 3 with iOS 9.2 if let settingsURL = URL(string: AppSettingsWifiUrl) { UIApplication.shared.openURL(settingsURL) } But after updating it is not working with Xcode 8 + Swift 3 + iOS 10, can anybody help here? 回答1: We can't do this anymore on iOS 11, we can just open the settings : if let url = URL(string:UIApplicationOpenSettingsURLString) { if UIApplication.shared.canOpenURL(url) { let url =

iTunes Connect upload rejected with invalid binary because of missing NSCalendarsUsageDescription

痞子三分冷 提交于 2019-11-30 17:29:16
I'm trying to upload an update for an existing App with XCode 8. After the upload I have received this email: "This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data." I know about the new privacy policy for iOS 10 and also how to add the needed description. My problem is: I'm not using the Calendar in my app. Is there a way to find out why Apple thinks I use the Calendar? Maybe it's used by the AdMobSDK from Google? Stephen I've

This iPhone 6 is running iOS 10.1 (14B55c), which may not be supported by this version of Xcode

流过昼夜 提交于 2019-11-30 16:46:26
I'm trying to run the app after I updated Xcode to v8 and iOS to v10, but this error message pops up & prevents me from doing so: This iPhone 6 is running iOS 10.1 (14B55c), which may not be supported by this version of Xcode. What should I do to get rid of this? To use the iOS 10.1 beta you need to use the Xcode 8.1 beta. Xcode 8 doesn't support the iOS 10.1 beta. And now since iOS 10.1 and Xcode 8.1 are out of beta, be sure you update to the latest, non-beta of both. Update Xcode 8.1 is now available on the app store, so you should just update your Xcode to the latest: https://itunes.apple

Xcode 8 beta 4: “Could not attach to pid : 1110” when running on physical device

和自甴很熟 提交于 2019-11-30 15:55:18
问题 I made a messages extension and when I run it on the iOS simulator everything runs no problem. When I try to run it on my phone, it compiles and says running for about 5 seconds before crashing and giving me a pop down message in Xcode saying Could not attach to pid Here is a screenshot: I am using Xcode 8 beta 4 with iOS 10. Everything runs fine in simulator this is on physical device. I have rebooted and restarted everything. I have even tried on two phones. Anyone know the solution? Thanks

Xcode 8 beta 4: “Could not attach to pid : 1110” when running on physical device

穿精又带淫゛_ 提交于 2019-11-30 15:37:19
I made a messages extension and when I run it on the iOS simulator everything runs no problem. When I try to run it on my phone, it compiles and says running for about 5 seconds before crashing and giving me a pop down message in Xcode saying Could not attach to pid Here is a screenshot: I am using Xcode 8 beta 4 with iOS 10. Everything runs fine in simulator this is on physical device. I have rebooted and restarted everything. I have even tried on two phones. Anyone know the solution? Thanks Okay this is a tough one. I went searching though the Xcode beta 4 release notes and found the answer

XCode 8 - How to solve an Auto resizing issue on XCode version 8.0?

放肆的年华 提交于 2019-11-30 13:49:57
I used XCode version 7.2.1 for my project. But I updated the XCode version 8.0 now. Though the scroll view is messed in view controllers of my project. Here I have used Resizing only not an Auto layout. I referred many forums. But can't able to find a solution for that. Here I have attached similar links to what I had tried. Xcode 8 GM seed Storyboard layout issue Layout issues after updating to Xcode 8 I have to update frame of everything in storyboard every time I start Xcode What is the exact solution for Scroll view resizing issue in XCode version 8.0? seggy Its work for me https:/

Swift UIViewReportBrokenSuperviewChain cause by Layer manipulation

主宰稳场 提交于 2019-11-30 12:49:00
I run into a problem after migrating my code to Swift 3. I guess iOS10 raises new issues now and it's actually not related to Swift itself. The error: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'View has lost track of its superview, most likely through unsupported use of CALayer API on the view's layer. If this isn't a crash yet, it will be in the near future. Problem view: <UIToolbar: 0x102552d80; frame = (0 0; 375 683); alpha = 0.97; opaque = NO; layer = <CALayer: 0x1700383e0>> Expected parent: <MyModelView: 0x10250ecd0; frame = (0 -16; 375 683)

iPad Application shows app icon as launch screen in iOS 10

只愿长相守 提交于 2019-11-30 12:45:55
问题 In iPad iOS 10 Application shows app icon as launch screen / Splash screen if we don't provide any launch screen. I had not set any launch screen or image. And LaunchImage asset is blank. It looks weird. see Is it bug ? or feature? FYI Application is not in App Store it's enterprise app. 回答1: I was also getting this issue in my app for iPad and I found solution of this. Solution: I added a launchscreen.xib in my app and select this file in to LaunchScreen section of 'General' section in