ios8

'+entityForName: nil is not a legal NSPersistentStoreCoordinator for searching for entity name

给你一囗甜甜゛ 提交于 2019-12-07 23:33:07
问题 Getting the exception later in the program when _managedObjectModel is being used. Below is initialiser code. NSURL *modelURL = [[NSBundle mainBundle] URLForResource:self.managedObjectModelName withExtension:@"momd"]; _managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; The problem is that _managedObjectModel is pointing to a garbage memory location. After analysing GPR and assembly code i found that the ManagedObjectModel was being initialised properly but,

SceneKit painting on texture with texture coordinates

跟風遠走 提交于 2019-12-07 21:24:25
问题 I have a Collada model that I load into SceneKit. When I perform a hittest on the model I am able to retrieve the texture coordinates of the model that was hit. With these texture coordinates I should be able to replace texture coordinates with a color. So this way I should be able to draw on the model Correct me if I am wrong so far. I read a lot of articles till now but I just don't get my shaders right. ( Though I did get some funky effects ;-) My vertex shader : precision highp float;

unregisterForRemoteNotifications doesn't work for iOS8 - Push Notification

老子叫甜甜 提交于 2019-12-07 19:54:45
问题 I decided to turn off my notification on "reminders" switch control from my app. I added those lines in my app to make it support both iOS 7 and iOS 8 and it is working when I switched off push notification. BUT when I decided to turn on the switch and closed the app,when I opened it again and it went back to OFF instead of being ON. So I have to go to Settings --> Notification Center --> "my app" and turn all the things back on because they are off... Very strange that when I test it on iOS

iOS 8 - Launching the application in Landscape mode

て烟熏妆下的殇ゞ 提交于 2019-12-07 19:46:12
问题 My iPad application supports all the orientations and it worked fine in iOS 7 as well. However in iOS 8 , launching the application in Landscape mode made my login view draw the landscape view within a portrait frame. After doing some analysis I found out that the application window does not take the correct orientation while launching in Landscape . Doing a rotation after that corrects the UI since it takes the correct orientation from that point onwards. Would someone be able to guide me

IOS8 Safari website links do not work after scrolling

此生再无相见时 提交于 2019-12-07 18:30:15
问题 I have an Angular website with a Bootstrap theme built primarily for iPhone users and since the IOS8 update I have found problems relating to scrolling. The site behaves fine until I scroll, once I have scrolled the links behave erratically eg if I press Button 2, the link from Button 1 will open. Also some CSS3 styles are not working eg :nth-child(even) I have searched for days trying to find a link between this behaviour and a scrolling bug but I can't find a fix anywhere. Unfortunately I

keyboard height varies in ios8

霸气de小男生 提交于 2019-12-07 18:27:00
问题 Am using the below code to get keyboard height which varies in IPhone 5s device with ios8 compared to IPhone4s device with ios7 .As a result my textfield is moving very high when i tap on it in IPhone5s with ios8 while the same code works fine in IPhone 4s with ios7.Can someone guide how the problem can be fixed in both versions. - (void)keyboardWasShown:(NSNotification*)notification { NSDictionary* info = [notification userInfo]; CGSize kbSize = [[info objectForKey

@3x images incorrectly used on iPhone 6 or 5S or 5 in XIB's with the “Use as Launch Image” option set

扶醉桌前 提交于 2019-12-07 18:24:13
问题 With-in a clean brand new iOS project I've: added 2 images to the project "background@2x.png" and "background@3x.png" added a XIB named "LaunchScreen.xib" checked the XIB's "Use as Launch Screen" option added a UIView sub-view to LaunchScreen.xib and set its image name to "background.png" with-in the project settings, under the targets 'General' settings I've set the 'Launch Screen file' to "LaunchScreen" Now when I launch the app on any of the devices list below the @3x image is displayed in

UIDocumentInteractionController broken in iOS 8

我的梦境 提交于 2019-12-07 17:33:44
问题 The related code below worked perfect when i was building for iOS 7, but it seems now in iOS 8, it's not working properly. By properly, I mean in the sense where it's not actually sending the file or whatever to the chosen app. Example: If I selected Mail, it would open the mail app with the image or zip I chose in the text field. Now it won't send and it takes forever to call/dismiss the UIDocumentInteractionController. What am I doing wrong? - (void)tableView:(UITableView *)tableView

Why does [NSSet containsObject] fail for SKNode members in iOS8?

空扰寡人 提交于 2019-12-07 16:57:18
问题 Two objects are added to an NSSet , but when I check membership, I can't find one of them. The test code below worked fine in iOS7 but fails in iOS8. SKNode *changingNode = [SKNode node]; SKNode *unchangingNode = [SKNode node]; NSSet *nodes = [NSSet setWithObjects:unchangingNode, changingNode, nil]; changingNode.position = CGPointMake(1.0f, 1.0f); if ([nodes containsObject:changingNode]) { printf("found node\n"); } else { printf("could not find node\n"); } Output: could not find node What

UIImagePickerController is not presenting correctly in iOS 8

时光总嘲笑我的痴心妄想 提交于 2019-12-07 16:31:25
问题 I'd like to present an UIImagePickerController with the following code: self.pickerController = [[UIImagePickerController alloc] init]; self.pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; self.pickerController.delegate = self; [self presentViewController:self.pickerController animated:YES completion:nil]; It's working fine for iOS 7 and below, but in iOS 8 I got the following glitch: While transitioning to the image picker controller (vertical cover animation),