ios9

Xcode 7 what is the view “semantic” storyboard setting?

血红的双手。 提交于 2019-11-30 04:16:00
I see that iOS9 and xCode7 introduced a new field called "semantic" into storyboard config. A google search did not reveal relevant results on top. What is the significance of the view semantic field? There is a new internationalization support in iOS 9, which enables flipping of the interface from left to right and vice versa depending on the current system language. You can choose Arabic language to test it. Arabic is read from right to left, so the interface is flipped. Here you can read the Apple's guide on it. The property "Semantic" in the storyboard is a rule which allows the iOS to

Contact is missing some of the required key descriptors in ios

核能气质少年 提交于 2019-11-30 03:49:53
问题 I have retrieves all contact by using following method - (void)getAllContacts:(void(^)(NSArray *array))handler { CNAuthorizationStatus status = [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts]; if (status == CNAuthorizationStatusDenied || status == CNAuthorizationStatusDenied) { UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:@"This app previously was refused permissions to contacts; Please go to settings and grant permission to this

Major iOS9 performance issues with Sprite Kit

こ雲淡風輕ζ 提交于 2019-11-30 03:48:32
I am experiencing HUGE performance issues with iOS9 and I just can't figure out what to do. I've read many posts - here , and here for example, but their suggested solutions don't help or make little difference. My game has gone from 60fps on an old iPad 2 (iOS 8.4) to < 15fps on a new iPad mini (iOS 9). I'm trying to work out the main culprit. I'm pretty certain one of them is SKCropNodes. I usually render several SKCropNodes in my scene (6 - 18). This was never an issue in iOS8, but it appears iOS9, while it does a better job of cropping, also eats up performance doing so. If I render the

Unable to pause SKEmitterNode in iOS9

坚强是说给别人听的谎言 提交于 2019-11-30 03:30:59
I've tried few workarounds, but still I can't pause existing particles on iOS9 . I am using following technique to pause the scene: pause the scene with self.paused = YES; set custom globalPause = YES; variable to control update: method execution (because update: still runs while scene is paused). The point is that I don't pause the view, but rather the scene. I don't pause the view, because of this . Here is the code which can reproduce this issue on iOS9 : #import "GameScene.h" @interface GameScene () @property (nonatomic, strong)SKEmitterNode *emitter; @end @implementation GameScene -(void

Show UIAlertController over keyboard

陌路散爱 提交于 2019-11-30 03:24:19
In iOS 8 and lower show a UIActionSheet when keyboard is presented will present the action sheet over the keyboard. With iOS 9 this is no longer the case. In my app we have a chat functionality and want the show a action over the keyboard. We used to use UIActionSheet which worked fine until iOS 8. In iOS 9 the action sheet is present behind the keyboard. I've tried both UIActionSheet and UIAlertController . What we want is a action sheet like in messages.app I've tried placing the action sheet in it own window and overriding canBecomeFirstResponder which just made the keyboard disappear. Leo

Is it possible to get wifi signal strength in ios 9

南笙酒味 提交于 2019-11-30 03:13:42
问题 I want to check WIFI signal strength to display some kind of message for weak WIFI signal. I fount that it is not possible in iOS 8 and older. Is it possible to get wifi signal strength in iOS 9? and if answer is yes then How? 回答1: Yes , it is possible in iOS 9.Look into NEHotspotNetwork 回答2: Register your app as Hotspot helper. (forums.developer.apple.com/message/30657#30657) #import <NetworkExtension/NetworkExtension.h> for(NEHotspotNetwork *hotspotNetwork in [NEHotspotHelper

Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:],

老子叫甜甜 提交于 2019-11-30 02:54:45
问题 I am getting the following error in iOS9 only. Here is my code:- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; if ([[NSUserDefaults standardUserDefaults] objectForKey:@"login_dict"]) { if ([[NSUserDefaults standardUserDefaults] objectForKey:@"isLogout"] == nil || [[[NSUserDefaults standardUserDefaults] objectForKey:@"isLogout"] integerValue]== 0) {

Find first element matching condition in Swift array (e.g. EKSource)

 ̄綄美尐妖づ 提交于 2019-11-30 02:46:18
I would like to find the first EKSource of type EKSourceType.Local with a "single"-line expression in Swift. Here is what I currently have: let eventSourceForLocal = eventStore.sources[eventStore.sources.map({ $0.sourceType }) .indexOf(EKSourceType.Local)!] Is there a better way of doing this (such as without mapping and/or with a generic version of find )? There's a version of indexOf that takes a predicate closure - use it to find the index of the first local source (if it exists), and then use that index on eventStore.sources : if let index = eventStore.sources.indexOf({ $0.sourceType ==

iOS: limit app to 64-bit devices only

白昼怎懂夜的黑 提交于 2019-11-30 01:51:43
According to the latest Apple WWDC, starting from ios 9 there should be a way to limit installing app only on 64 bit devices. I searched in XCode for this option but could not find anything. Is this already possible and if yes, how can i enable it? Daniel Zhang In Xcode, set the following values: Build settings > Architectures Set to arm64 only. (click Other -> + and than enter arm64 ) Build settings > Valid architectures Set to arm64 only. Info.plist Set UIRequiredDeviceCapabilities to arm64 only. The app will then not be able to run on a device that does not support 64-bit code. 来源: https:/

iOS9 GoogleAnalytics and NSAppTransportSecurity

折月煮酒 提交于 2019-11-30 01:48:11
I am running into trouble due to the new security opportunity from Apple's iOS9 to restrict ssl requests to any kind of servers. See reference: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33 Actually, I want to make use of the default and not allow any kind of connection NSAllowsArbitraryLoads: false <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <false/> </dict> Of course some connections are intended and I retrieve data from own servers as well as from