ios9

Is Game Center Multiplayer Friends broken in IOS 9?

半腔热情 提交于 2020-01-03 13:10:10
问题 I created a game that uses real-time multiplayer programmatically. It was originally targeted to towards IOS 8 devices. Recently after migration to IOS 9, Game Center has caused a lot of problems. The main issue I cannot resolve is Inviting a friend in multiplayer (for testing). From IOS 8 to IOS 8. Auto match works and Friend invitations work But from IOS 9 to IOS 9. Auto match works and Friend invitations do not work anymore. If any of you have managed to make Game Center invitations work

UITableView background color iOS 9

橙三吉。 提交于 2020-01-03 08:28:50
问题 I have a UITableView that I want to set its background color to transparent. Background color for the table view and all subviews at interface builder is set to transparent. It works fine for iOS 8 & 7. but, not iOS 9. any idea? cellForRowAtIndexPath method: [cell setSelectedBackgroundView:[[UIView alloc] init]]; [cell.selectedBackgroundView setBackgroundColor:[UIColor clearColor]]; [cell setBackgroundColor:[UIColor clearColor]]; [cell.contentView setBackgroundColor:[UIColor clearColor]];

how to add armv7s architecture to static library in xcode 7 / ios 9?

前提是你 提交于 2020-01-03 07:37:49
问题 Looks like after upgrading to xcode 7 beta 5 and iOS 9.0 beta 5, I can't create a static library that includes an armv7s slice. lipo -info staticLibraryName says: Architectures in the fat file: staticLibraryName are: armv7 i386 x86_64 arm6. Adding armv7s to build settings alongside $(ARCHS_STANDARD) and setting Build Active Architectures Only to No doesn't not seem to do the trick like it did in xcode 6. Any one else getting this ? Any way to produce the armv7s slice ? If I release a static

window.outerWidth is 0 in Safari on iOS 10 beta

做~自己de王妃 提交于 2020-01-03 07:23:08
问题 Using an iPad with iOS 10 installed, I entered window.outerWidth in the browser console and got a value of 0 . OTOH, window.innerWidth correctly produced 1024 (landscape mode). In iOS 9, window.outerWidth correctly produced 1024 , so is this just a bug in the iOS 10 beta or is there a subtlety to this property that I'm missing? 回答1: The issue is more than just the iOS 10 Beta, but I doubt it is a priority for Apple Devs to fix as iOS devices don't really have an external frame on the sides of

Cannot invoke initializer for type nsdictionary with an argument list of type(objects:String?for key [] string)

眉间皱痕 提交于 2020-01-03 06:32:10
问题 I want to add my data in dictionary in form of key value pair. But They give me error mentioned above. Here is my Code let dictionary = NSDictionary(objects: [getStringAt(selectStmt, column: 0), getStringAt(selectStmt, column: 1)], forKeys: ["username", "image"]) 回答1: The error message says that you're going to create an dictionary with optional String values. Since all values in a dictionary must be non-optional you have to unwrap them. let dictionary = NSDictionary(objects: [getStringAt

iOS 9 : AVFoundation Export Session is missing audio

人盡茶涼 提交于 2020-01-03 03:48:05
问题 I'm using the below code snipped while merging videos with original audio. It has been working until I upgraded to iOS9. Anyone faced the same issue and any help to resolve would be greatly appreciated. I couldn't find anything after researching whole day. AVAssetTrack *videoTrack = nil; AVAssetTrack *audioTrack = nil; CMTime insertionPoint = kCMTimeZero; if([[url tracksWithMediaType:AVMediaTypeVideo] count] != 0) { videoTrack = [url tracksWithMediaType:AVMediaTypeVideo][0]; } if([[url

UIPasteboard doesn't work in iOS9 Xcode7.0

心已入冬 提交于 2020-01-03 03:11:15
问题 i want to update my app to make compatible of iOS9.UIPasteboard's methods ware working perfectly till iOS8 but when i run in iOS9 there is no response from UIPasteboard. i mean to say, i'm not getting string or url or images. i read Apple'S Developer Document but can't find something useful.to get string from UIPasteboard i use following method.. id data; data = [UIPasteboard generalPasteboard].image; if(!data){ data = [UIPasteboard generalPasteboard].string; if(!data){ data = [UIPasteboard

IOS Coredata compatible with both IOS 9 and ios 10

孤街醉人 提交于 2020-01-02 09:59:52
问题 Hi I'm developing an app to work with both IOS 10 and 9 (xcode 8). What is the proper way to create new entity object? new IOS 10 has this code var newEvent = Event(context: context) How do we make this code work with both IOS 10 and 9? I'm testing using Mater-Detail template with coredata xcode8 Any additional change should we make to ensure coredata work with both IOS 9 and 10? any help is much appreciate. Thanks 来源: https://stackoverflow.com/questions/39687249/ios-coredata-compatible-with

Eddystone beacon detecting issue

倾然丶 夕夏残阳落幕 提交于 2020-01-02 08:11:52
问题 Here is a code I use to detect Eddystone using iPhone iOS 9: - (void)viewDidLoad { [super viewDidLoad]; if ([CLLocationManager locationServicesEnabled]) { _locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; self.locationManager.pausesLocationUpdatesAutomatically = NO; [self.locationManager requestAlwaysAuthorization]; NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"f7826da6-4fa2-4e98-8024-bc5b71e0893e"]; NSString *bundleIdentifier = [[NSBundle

NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension

ぐ巨炮叔叔 提交于 2020-01-02 07:18:11
问题 I'm trying to make a custom TunnelProvider network extension by starting with the XCode template for the TunnelProvider and then adding the code to the host app in order to configure it and start it. I am using an instance of NETunnelProviderManager to configure it, and when I call saveToPreferencesWithCompletionHandler: I get success (error = 0). However, when I call startVPNTunnelAndReturnError: on the (non-zero) connection I always get the below error: Error Domain=NEVPNErrorDomain Code=1