ios8.1

GameCenter: endTurnWithNextParticipants not advancing

时间秒杀一切 提交于 2019-12-02 08:26:55
In the sandbox environment, I'm having trouble advancing a turnbased match to the next player. Initial conditions: Player A and Player B on Device A and Device B, respectively. Both logged into the sandbox Both players can see each other's GC status message Player A creates a match and invites player B Player A ends the turn In my "end turn" function I do the following: NSLog(@"size = %ld", updatedMatchData.length); //move the current player to the bottom of the list NSMutableArray *nextPlayers = (NSMutableArray *)theMatch.participants; NSLog(@"%@", [nextPlayers description]);

EXC_BAD_ACCESS on iOS 8.1 with Dictionary

两盒软妹~` 提交于 2019-12-01 15:08:51
I have an object accessible via a static var in a struct (workaround for the lack of class variable support in swift right now), structured like this: struct Constants{ static var myObj = MyObject() } MyObject has a dictionary in it like so: class MyObject{ private var params = Dictionary<String,AnyObject>() func addParam(key:String, value:AnyObject){ params[key] = value } } Now on the first call to this object for Contants.myObj.addParam("param", value:123) all is well and params has contents ["param":123] . On the second call for Contants.myObj.addParam("param", value:456) , I get a EXC_BAD

Static or Prototype UITableViewCell subviews are resized incorrectly in Storyboard on Xcode 6.1.1, iOS 8.1 SDK

和自甴很熟 提交于 2019-11-30 19:02:46
问题 So I updated to Xcode 6.1 earlier and 6.1.1 today . I notice that there's an issue while using Static / Prototype UITableViewCell (or Prototype UICollectionViewCell) in Storyboard. All the subviews with certain Autoresizing masks will be resized incorrectly when running on device / simulator. UISlider as a subView of the Static UITableViewCell Autoresizing rule is Flexible Width. Or Flexible LeftMargin also causes the problem. Observing the Slider is too long, went off the screen the the

iOS 8 iPad AVCaptureMovieFileOutput drops / loses / never gets audio track after 13 - 14 seconds of recording

六月ゝ 毕业季﹏ 提交于 2019-11-30 17:24:13
I have the following code which works for iOS 6 & 7.x. In iOS 8.1 I have a strange issue where if you capture a session for about 13 seconds or longer, the resulting AVAsset only has 1 track (video), the audio track is just not there. If you record for a shorter period the AVAsset has 2 tracks (video and audio) as expected. I have plenty of disk space, the app has permission to use camera and microphone. I created a new project with minimal code, it reproduced the issue. Any ideas would be greatly appreciated. #import "ViewController.h" @interface ViewController () @end @implementation

Tap Mic Input Using AVAudioEngine in Swift

这一生的挚爱 提交于 2019-11-30 10:53:43
问题 I'm really excited about the new AVAudioEngine. It seems like a good API wrapper around audio unit. Unfortunately the documentation is so far nonexistent, and I'm having problems getting a simple graph to work. Using the following simple code to set up an audio engine graph, the tap block is never called. It mimics some of the sample code floating around the web, though those also did not work. let inputNode = audioEngine.inputNode var error: NSError? let bus = 0 inputNode.installTapOnBus(bus

iOS 8 iPad AVCaptureMovieFileOutput drops / loses / never gets audio track after 13 - 14 seconds of recording

▼魔方 西西 提交于 2019-11-30 01:03:49
问题 I have the following code which works for iOS 6 & 7.x. In iOS 8.1 I have a strange issue where if you capture a session for about 13 seconds or longer, the resulting AVAsset only has 1 track (video), the audio track is just not there. If you record for a shorter period the AVAsset has 2 tracks (video and audio) as expected. I have plenty of disk space, the app has permission to use camera and microphone. I created a new project with minimal code, it reproduced the issue. Any ideas would be

Make navigation bar transparent regarding below image in iOS 8.1

让人想犯罪 __ 提交于 2019-11-29 02:21:16
I try to set my navigation bar transparent regarding a image below this, something like the following image : I tried the solution in transparent navigation bar ios but I don't get the above result, I get only the icon on the left but without any color in the navigation bar, completely transparent. But if I set a background color the transparency disappears at all. There is any way to set a color in the navigation bar and make it transparent?? Thanks in advance. just checked on the 8.1 simulator and got very similar result to your picture let bar:UINavigationBar! = self.navigationController?

NSLocale preferredLanguages objectAtIndex:0 always return “en”

◇◆丶佛笑我妖孽 提交于 2019-11-28 22:52:49
Simulator's language already changed to Japanese, why [[NSLocale preferredLanguages] objectAtIndex:0] always return "en" ? Neither preferred language nor region is related to "en", where does "en" come from? Tried to get [[NSLocale preferredLanguages] objectAtIndex: 2 ] , then crash shows *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFArray objectAtIndex:]: index (2) beyond bounds (1) Does it means there is no any languages are set in simulator? So weird! This never happened before upgrading to Xcode 6.1 with iOS8.1/7.1. Meanwhile, tried same thing on my

ALAssetsLibrary assetForURL: always returning nil for photos in “My Photo Stream” in iOS 8.1

浪子不回头ぞ 提交于 2019-11-28 17:53:50
This code worked fine in iOS 7 but in iOS 8.1 all assets located in the "My Photo Stream" album are nil from within the result block. (The failureBlock is not called.) Regular albums and shared albums work just fine. I tried the accepted answer from: Error trying to assigning __block ALAsset from inside assetForURL:resultBlock: That is, I'm holding a reference to an ALAssetsLibrary object, listening for the ALAssetsLibraryChangedNotification event (which doesn't happen btw, but oh well.) I made sure my app has permission to access photos, I'm on wi-fi, I see the photos' thumbnails just fine in

Changing language on iOS 8.1 simulator does not work

天大地大妈咪最大 提交于 2019-11-28 17:21:35
If I change the language on an iOS 8.1 simulator to anything and try to detect this from code with NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0]; NSLog(@"Language: %@", language); I get "en" back. I've tried resetting the navigator, etc. I've tried this using the iOS 7.1 runtime (in Xcode 5.1.1), and it worked fine. Has anyone managed to find a workaround to this problem? According to the release notes this is a known issue. There is a work around. If you go to "Edit Scheme..." then the "Options" tab there's an "Application Language" option. This only affects the