ios10

Where can I download the iOS 10 simulator runtime file?

家住魔仙堡 提交于 2019-11-30 11:22:55
问题 I want to test my apps in the iOS 10 simulator, but I'm not sure where to get the .runtime file for iOS 10. I don't see a download for it under Components in Xcode 8. Where can I download the .runtime file for iOS 10 (if it exists)? Thanks in advance! EDIT: I forgot to mention: As I was trying to fix another problem (before I asked this question), I ended up deleting all of my runtimes and redownloading them (except for iOS 10). 回答1: I ran into this issue earlier today. After installing Xcode

Falling back to loading access token from NSUserDefaults because of simulator bug

谁都会走 提交于 2019-11-30 10:46:38
Xcode log show the above error while running in Xcode 8.1, ios 10.1. Is there any problem or should I ignore and continue? I have this problem, too. It seems to be caused by an the Facebook SDK's Login Access Token. It caches just fine on a real device, but not on the simulators. Try running the app from a physical device. You can ignore this warning, it's hard coded in the FacebookSDK when using the iOS Simulator. The SDK does contain a bug though which prevents the simulator from caching the access token. You can fix this by adding the following line: key = [NSString stringWithFormat:@"%@

Springboard crashing when adding a lot of triggers to UNUserNotificationCenter

烂漫一生 提交于 2019-11-30 09:59:12
Save yourselves from hours of debugging, because I've just wasted 2 weeks after bug hunting mysterious app crashes. It turns out, if you're adding a lot o (see answer for more details) notification requests to the UNUserNotificationCenter , it will abruptly crash the Springboard. I haven't found a way around this yet, as the same code worked fine for iOS 9 and below. You can't seem to bulk-add notification requests like before either. Following is the crash I receive every single time (and so does hundreds of app users). Any idea what I could do instead of going back to using

My button's titleLabel become “…” on iOS10

空扰寡人 提交于 2019-11-30 09:43:15
问题 When I use iOS 10 some button label's text become "...". I found the same string (e.x:我是人) in iOS9 uses 48 width. In iOS10 it uses 48.96 width. How to fix? 回答1: You have to use "adjustsFontSizeToFitWidth" property of titleLabel of your button Example: myButton.titleLabel.adjustsFontSizeToFitWidth = YES; This line will automatically adjust font size for the text of myButton based on the width of the button. Use this link: adjust UIButton font size to width Another solution is to increase the

Request authorization to Media Library programmatically fails

一笑奈何 提交于 2019-11-30 09:37:20
iOS 10 now requires the user's permission to access the Media Library. We check if we have access to the Media Library before we use it, and if not we then use [MPMediaLibrary requestAuthorization: to request authorization again from the user. I'm expecting this to show the same popup request to access the Media Library that we get at app startup, but nothing happens. It is simply returning with the MPMediaLibraryAuthorizationStatusDenied status from before. The docs for requestAuthorization are incomplete at this time, so I can't tell if I'm just using this incorrectly, or there is something

Facebook login issue with iOS 10

独自空忆成欢 提交于 2019-11-30 09:05:14
I use facebook to login into my application. Trying to login using Facebook on iOS 10 , iPhone simulator 6s. -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 10814 : kLSApplicationNotFoundErr -10814 No application in the Launch Services database matches the input criteria. I am using facebook sdk version 4.13.1. Before XCode 8, same code was working perfectly. Any Help ? Thanks in advance. Pritish Vaidya Error status 10814 occurs basically when cantOpenUrl ,which is used by the facebook to call the url using the arguments fbauth2

UIImagePickerController crashes on iOS10

我们两清 提交于 2019-11-30 08:09:22
On presenting UIImagePickerController with photo library source on iOS10 , my app crashes. On iOS10 with camera source and on iOS9 with photo library and camera sources, the app does not crash. The app is written in Swift 2.2 and built by Xcode 7.3.1 . Why does the crash occur? let imagePicker = UIImagePickerController() imagePicker.sourceType = .PhotoLibrary imagePicker.allowsEditing = true imagePicker.delegate = self self.presentViewController(imagePicker, animated: true, completion: nil) You may need to put the NSCameraUsageDescription (if your app uses the Camera) and

Remove top line from TabBar

谁说胖子不能爱 提交于 2019-11-30 08:06:18
问题 On iOS 10 this code doesn't work in order to remove the tabBar shadow line: [[UITabBar appearance] setShadowImage:[[UIImage alloc] init]]; Somebody knows, what must I do to remove it? On iOS 9.3 with this two lines the line is removed, but iOS 10 ignores setShadowImage command. 回答1: removes the topline for @iOS 13.0 let appearance = tabBar.standardAppearance appearance.shadowImage = nil appearance.shadowColor = nil tabBar.standardAppearance = appearance; removes the topline for iOS 12.0 and

Today Extension: How to work with display mode?

不羁岁月 提交于 2019-11-30 07:27:39
问题 Widgets now include the concept of display mode (represented by NCWidgetDisplayMode), which lets you describe how much content is available and allows users to choose a compact or expanded view. How to expand widget in ios 10.0? It doesn't work as in ios 9. 回答1: Ok, i found right solution here. 1) Set the display mode to NCWidgetDisplayMode.expanded first in viewDidLoad : override func viewDidLoad() { super.viewDidLoad() self.extensionContext?.widgetLargestAvailableDisplayMode =

Push notification not receiving in iOS 10

女生的网名这么多〃 提交于 2019-11-30 07:10:14
My App is in Appstore. Push notification is working fine in iOS 9, but in iOS 10 it is not working. I am not receiving any push notification for iOS 10 devices. I have checked the device token and certificate in my server. All are correct. I have also checked the notification properties in settings app. All are fine. But I didn't receive any notification. I just switch OFF and ON the notification for my app. And I opened my app to check whether device token is changing or not. It is changed and updated to my server. Then I am receiving notification properly. It is working fine now for my