Tag: ios9

CNUI ERROR Selection predicates are set but the delegate does not implement contactPicker:didSelectContact:

I try to use the new iOS 9.0 CNContactPickerViewController to select a contact in objective-C. I set the delegate and implement the CNContactPickerDelegate methods. @import ContactsUI; @import Contacts; //———————————————————————– – (void) presentContacts { CNContactPickerViewController *contactPicker = [[CNContactPickerViewController alloc] init]; contactPicker.delegate = self; contactPicker.predicateForEnablingContact = [NSPredicate predicateWithFormat:@”familyName LIKE[cd] ‘smith'”]; contactPicker.predicateForSelectionOfContact = [NSPredicate predicateWithFormat:@”TRUEPREDICATE”]; [_myViewController presentViewController:contactPicker animated:YES […]

Facebook login page showing blank page in IOS 9

I am using FBSDKCoreKit (4.12.0) FBSDKLoginKit (4.12.0) first i am getting screen 1 This method is block is never called . FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@”email”,@”public_profile”] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { //never called }]; getting this warning Warning: Attempt to present <FBSDKContainerViewController: 0x16570810> on <ViewController: 0x16528870> whose view is not in […]

Attempt to present UIAlertController on UIViewController whose view is not in the window hierarchy

I’m trying to check the UIAlertController in iOS 9 for my sample application and while run it then I had found warning in console. I’m using Xcode 7 and Objective C. Please find the below warning message in console. Warning: Attempt to present < UIAlertController: 0x7fb1bb5be040 > on < ViewController: 0x7fb1bb5aef30 > whose view is […]

setStatusBarHidden is deprecated in iOS 9.0

I am upgrading my code from iOS 8 to iOS 9. I have a code snippet in my program [[UIApplication applicationName] setStatusBarHidden:YES];. I am getting the warning “setStatusBarHidden is deprecated in iOS 9.0, Use -[UIViewController prefersStatusBarHidden”. If I just replace ‘setStatusBarHidden’ with ‘prefersStatusBarHidden’, I get ‘instance method not found’. Can someone please suggest me how […]

Xcode 7 iOS 9 UITableViewCell Separator Inset issue

This is not a question, rather a solution to the problem I faced. In Xcode 7, when the application is run on iOS 9 on iPad devices, the UITableView cells leave some margin onto the left side of the tableview. And rotating the device to landscape would increase the margins. The solution I found is: […]

Submitting App from building in Xcode 6.4

I previously built my app in an Xcode 7 beta as my testing device is an iOS 9.0 device. I recently deleted Xcode 7 and began working on my app in Xcode 6.4 (not a beta). 6.4 does not support iOS 9 but my iPhone on an iOS 9 Beta is not uneligible (as it […]

preferredLanguages iOS 9

in order to localize my App, I use the following code: NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0]; if ([language isEqualToString:@”fr”]) { }else{ } But since iOS 9, I’have to replace “fr” by “fr-FR”. The problem is that only works for France. How can I support all the other regions (Canada, Belgium,..) ? and the […]

how to programmatically open the WIFI settings in objective c in iOS9

I’m trying to access the WIFI settings through my application using Objective-C. But can not find any way. Could someone help me? Already tested with: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=WIFI”]]; Does not work on iOS 9.

How to check App slicing feature in iOS without uploading it to Appstore

I am working on App slicing feature and set all images in asset, i need to check that feature without uploading on Appstore. Is that possible? is there any way by which we can get .IPA file and check it’s size or resources.

Xcode 7 GM – not able to call enumerateObjectsUsingBlock

I just downloaded xcode 7 GM and trying to call the method enumerateObjectsUsingBlock of NSArray with iOS 9 but it shows the following error at build time. Incompatible block pointer types sending ‘void (^)(SKSpriteNode *__strong, NSUInteger, BOOL *)’ to parameter of type ‘void (^ _Nonnull)(SKNode * _Nonnull __strong, NSUInteger, BOOL * _Nonnull)’ This is the […]