ios9

'Open this page in “null”' Modal appearing from FacebookSDK login after iOS9 and Swift 2 upgrade

心不动则不痛 提交于 2019-12-04 04:04:29
I'm in the process of updating projects to Swift 2 and iOS 9. One of the projects I'm doing relies heavily on Facebooks SDK. I use it to login, get user information, ect... Prior ot the update, once you logged in the Safari would redirect you directly to the app. Now I'm getting a fun little modal displaying the following (See Fig 1 at bottom) I assume this has some connection to the new Info.plist key we add LSApplicationQueriesSchemes with a Item0 as fbauth2 now required by iOS 9. I also noticed I'm getting a stack trace with my app saying: failed for URL: "fbauth2:///" - error: "(null)" I

Is it possible to hide URL bar in iOS 9 (Safari browser) by using JavaScript?

落花浮王杯 提交于 2019-12-04 03:59:16
问题 I want to hide the URL bar from my single-page application by using JavaScript. I tried to set bigger height of the 'body' element and then perform: window.scrollTo(0, 0); But it doesn't work. The URL bar is still visible. How do I solve this problem? 回答1: For iPhone, you can make your content just one pixel higher than the viewport, that will eliminate the navbar. Working code example: http://pastebin.com/16s8Xvbw Caveats: Only works in landscape, and when flipping from portrait to landscape

CocoaPods - build for iOS 9 / Swift 2 with Xcode-beta

梦想与她 提交于 2019-12-04 03:52:39
I have a "CocoaPod" (terminology?) that's currently at version 1.1. There's also a develop branch of the repo that requires Swift 2.0 (so needs a base SDK of IOS 9.0) with a PodSpec as follows: Pod::Spec.new do |s| s.name = 'ReachabilitySwift' s.version = '2.0-beta1' s.homepage = 'https://github.com/ashleymills/Reachability.swift' s.authors = { 'Ashley Mills' => 'ashleymills@mac.com' } s.summary = 'Replacement for Apple\'s Reachability re-written in Swift with callbacks.' s.license = { :type => 'MIT' } # Source Info s.ios.platform = :ios, "9.0" s.osx.platform = :osx, "10.11" s.ios.deployment

done button is not visible in number pad iOS 9 issue

岁酱吖の 提交于 2019-12-04 03:50:15
问题 this code is working in ios 6,7,8 but this all method is called in ios 9 but it is not visible. on number pad. here is my code. #import "ViewController.h" #define TAG_BUTTON_DONE 67125 @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; // Do any additional setup after loading the view, typically

Custom transition for push animation with NavigationController on iOS 9

北城以北 提交于 2019-12-04 03:27:58
I have a custom push transition between view controllers embedded in a UINavigationController which is working fine when built with iOS 7/8 but presents a wrong layout when built against iOS 9 SDK. - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; UIViewController *toViewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; [transitionContext.containerView addSubview:toViewController.view]; ... It

UILocalNotification issue with iOS9

别来无恙 提交于 2019-12-04 03:13:42
Since iOS9, local notification aren't working properly. Sometimes users receive the notification, sometimes they just don't. My notifications are repeated daily. Any idea what might causing the issue? I saw some posts, that there's a bug in iOS9, but I'm not sure that's the reason. Here's a piece of code: NSDate *alarmDate = [date dateByAddingTimeInterval:DEFAULT_SNOOZE_DURATION * i]; UILocalNotification *localNotif = [[UILocalNotification alloc] init]; localNotif.fireDate = alarmDate; localNotif.timeZone = nil; localNotif.alertBody = alertBody; localNotif.hasAction = YES; localNotif

Swift ios 9: Section header change position after reload data

ⅰ亾dé卋堺 提交于 2019-12-04 02:57:59
问题 I have plain UITableView with many sections and rows. Sections work fine. But sometimes after reload data of table, section change position. For example it was happened when i change tabs. What could be the problem? Image before changed tabs: Image after changed tabs: Update: Add code below: override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) self.dishesListTableView.reloadData() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } func

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

冷暖自知 提交于 2019-12-04 01:47:09
问题 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

SpriteKit shader crash iOS 9: SKDefaultShading, gl_FragCoord

狂风中的少年 提交于 2019-12-04 01:43:02
Just installed the iOS 9 open beta (version 3) and now I'm having loads of problems with SpriteKit shaders. On iOS 8 the following code worked just fine: _fontShader = [SKShader shaderWithFileNamed:@"TheShader"]; // TODO: iOS9 compatibility issues here _fontUniform = [SKUniform uniformWithName:@"labelBase" float:0]; [self.fontShader addUniform:self.fontUniform]; // TODO: iOS9 compatibility issues here _fontEffects = [SKEffectNode node]; self.fontEffects.shader = self.fontShader; // TODO: iOS9 compatibility issues here self.fontEffects.shouldEnableEffects = YES; self.fontEffects

The application is missing required entitlement com.apple.developer.icloud-services'

﹥>﹥吖頭↗ 提交于 2019-12-03 23:58:31
问题 I'm using a public iCloud database in my app, which works great and is up on the store. On updating my app to a new version (with Xcode 7 on iOS9) I get a crash on the line : CKContainer * container = [CKContainer containerWithIdentifier:@"iCloud.com.identifier"]; *** Terminating app due to uncaught exception 'CKException', reason: 'The application is missing required entitlement com.apple.developer.icloud-services' This happens ONLY the first launch of the app after updating, and only on