ios8

Different behaviour in iOS 7 and iOS 8 on -(void)viewDidAppear:(BOOL)animated on Partial Curl VC

删除回忆录丶 提交于 2019-12-20 06:13:32
问题 -(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; //Reset all NSUserDefaults values } My app was previously working fine in iOS 7 but after upgraded to iOS 8, it is no longer working. This is happening in my parent VC where user is required to select some option in another (child) VC which transit via "Partial Curl". In iOS 8, seems like all my options are not saved in child VC anymore when I transit back to my parent VC. FYI I store my options selection in child VC inside

MapKit giving wrong lat & lang - iOS 8

柔情痞子 提交于 2019-12-20 05:57:36
问题 When I try to use map in iOS 8, I get below error. Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first. For this I tried solution from here, but still no luck. Below is what I did. Step 1. Have entry in Info.plist NSLocationWhenInUseUsageDescription - This is test text Step 2. Updated -(CLLocationCoordinate2D) getLocation -

SKLabelNode will disappear but is still clickable

若如初见. 提交于 2019-12-20 04:28:21
问题 I am making a game using SpriteKit and Swift, running Xcode 6. I have an SKLabelNode , let's call it myLabelNode for this example. When I call myLabelNode.removeFromParent() it removes the node from the scene, as it should. The node count drops by 1, and it isn't visible anywhere on the screen. However, when I click the spot where myLabelNode previously was, my program will still call out the function that should only happen when myLabelNode is touched. I also tried combining myLabelNode

Swift compiler hangs! Is it a bug?

*爱你&永不变心* 提交于 2019-12-20 02:58:05
问题 At one point, while I was working on a Swift project, the Xcode got stuck with "Compiling Swift source" message in the status bar. The compilation did not finish no matter how long I waited. I rolled back my recent changes, and soon realized that what confuses the compiler is a very simple enum construct. Below is a Playground example that illustrates the problem. Create a new Playground and paste this code. Do you see any output? // Playground - noun: a place where people can play import

Unable to run app in Simulator Xcode 6

最后都变了- 提交于 2019-12-20 02:54:42
问题 Yesterday i was testing my app in the iOS simulator and everything was working fine. I then decided to run the app on my iPhone and i got the error unable to install application, Unknown error occurred this has happened before so I cleaned my build folder (as this has fixed this issue before) however, the same error occurred. I then ran the app in the iOS simulator again and now i get the error Unable to run app in Simulator, An error was encountered while running (Domain =

KeyboardViewController NSLog IOS 8

爱⌒轻易说出口 提交于 2019-12-20 01:43:41
问题 We can log with NSlog in other view in iOS 8 (Xcode Beta Version). However, I can't NSLog in keyboard extension in KeyboardViewController. It didn't appear in log. NSLog(@"viewdidload in keyboard"); I would like to know how to detect/log in real time. 回答1: You just don't see what is being logged in the debug area of Xcode because the Xcode debugger isn't attached to your extension. Extensions are nearly completely independent from their containing app. Answered here: for physical device:

What am I doing wrong in Swift for calling this Objective-C block/API call?

十年热恋 提交于 2019-12-20 01:07:31
问题 I'm using RedditKit to integrate Reddit into an app, and in Objective-C I called the API as follows (and it worked fine): [[RKClient sharedClient] signInWithUsername:@"username" password:@"password" completion:^(NSError *error) { RKPagination *pagination = [RKPagination paginationWithLimit:100]; [[RKClient sharedClient] linksInSubredditWithName:subredditSelected pagination:pagination completion:^(NSArray *collection, RKPagination *pagination, NSError *error) { // code that executes on

AVCaptureMetadataOutput setMetadataObjectTypes unsupported type found

浪尽此生 提交于 2019-12-19 17:41:05
问题 I know there are someone have ask this question.But it is a sorry i donot find the answer. dispatchQueue = dispatch_queue_create("myQueue", NULL); [captureMetadaOutput setMetadataObjectsDelegate:self queue:dispatchQueue]; // [captureMetadaOutput setMetadataObjectTypes:[NSArray arrayWithObject:AVMetadataObjectTypeQRCode]]; // 设置条码类型 captureMetadaOutput.metadataObjectTypes = @[AVMetadataObjectTypeQRCode]; i got crashes info from Crashlytics: [AVCaptureMetadataOutput setMetadataObjectTypes:] -

Not fetch Google user when handle sign in with another Google app using GIDSignIn

落花浮王杯 提交于 2019-12-19 16:19:19
问题 I'm using Google Sign-In for iOS and when using simulator it's working fine because no google app is installed and user is fetch, but when using my iPhone 6 device open youtube (with some registered account inside them) for handle sign in. After, when come back on the app code don't enter on this function : -(void)signIn:(GIDSignIn *) signIn didSignInForUser:(GIDGoogleUser *) user withError:(NSError *) error Anyone can help me i can't use another function for login i must call [[GIDSignIn

SpriteKit Autoresumes and auto pauses iOS8

夙愿已清 提交于 2019-12-19 11:59:17
问题 The scene auto pauses on applicationWillResignActive and auto unpauses when applicationDidBecomeActive is run. I am looking to either have the scene pause on applicationWillResignActive via the nsnotification and not auto resume when applicationDidBecomeActive is run. Any ideas? Thanks in advance. AppDelegate - (void)applicationDidBecomeActive:(UIApplication *)application { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was