ios9

iOS 9 ATS and Firebase REST

你离开我真会死。 提交于 2019-11-29 10:27:01
I am building a simple iOS app that talks to Firebase using REST API. Essentially, I am using NSURLSession.sharedSession().dataTaskWithRequest to connect to https://myusername.firebaseio.com/Object.json The app works fine in iOS 8. I am able to pass GET/PUT/PATCH/DELETE to manipulate my data. But since iOS 9 introduced ATS, I now have the https error: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, CFNetwork SSLHandshake failed) I am fully aware of the workaround solution in Info.plist. However, I want to utilize the new safety feature in iOS 9. I checked Firebase

UITextField text jumps iOS 9

a 夏天 提交于 2019-11-29 09:25:15
Link for previous question: UITextField text jumps Briefly: I have ViewController with 2 UITextField elements. When loginField is firstResponder, after self.passwordField.becomeFirstResponder() text in login field jumps to the top left corner and back. And what's more strange: this glitch reproduces only first time, then you need recreate ViewController to observe this behavior Here is video of the glitch http://tinypic.com/player.php?v=6nsemw%3E&s=8#.VgVb3cuqpHx I ended up with this (doesn't work for iOS 9): func textFieldShouldReturn(textField: UITextField) -> Bool { if textField === self

iOS 9 Facebook SDK Login/Share

谁说我不能喝 提交于 2019-11-29 08:54:10
问题 I have run into an issue using the latest Facebook SDK (4.6) on iOS 9. To authorize a user, I use the FBSDKLoginManager. I have tried setting this: loginManager.loginBehavior = FBSDKLoginBehaviorNative; But the SDK still seems to always use an SFSafariViewController to authorize Facebook. Here is the problem I am facing. If a user has the FB app installed on their device with FacebookAccountA, then tries to authenticate with my app, they are presented this SFSafariViewController and they can

Raise exception on App Transport Security?

耗尽温柔 提交于 2019-11-29 08:38:37
Under iOS 9, I've used the accepted answer here: Transport security has blocked a cleartext HTTP I added the entries to my Info.plist file under NSAppTransportSecurity . My app seems to be functioning properly, as well as executing all of the requests for which I've accounted for. I am still receiving the error: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. My problem is that I can't find where in my app codebase this is coming from and I do NOT want to allow all domains

Xcode7 beta no provisioning is it right? [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-11-29 08:37:34
This question already has an answer here: Test iOS app on device without apple developer program or jailbreak 9 answers When I watch the WWDC 2015 video,I got a message:you can run on the device without provisioning.But when I use the Xcode7 beta for test,I must choose a provisioning for my iphone4s (iOS7.1) and the iPad(iOS9 beta)no need.Any one Know why?Is it only support iOS9 without provisioning? Shobhakar Tiwari Yeh now anyone can test iOS app on physical device so no need to enroll in developer program . Here is step for running iOS application without using provisioning profile : link

edgesForExtendedLayout ignored on iOS9 when using custom animation

时间秒杀一切 提交于 2019-11-29 07:57:53
iOS9 seems to ignore destination view controller's edgesForExtendedLayout when implementing custom animation using UIViewControllerAnimatedTransitioning , therefore the content ends up below the navigation bar. Any idea why this is happening? I've hosted an example at https://github.com/nmarkovic04/CustomAnimationTest . Running it on 8.4 and 9.1 shows the difference but you can most likely try any other 8.x and 9.x version. Running on XCode 7, Swift 2.0. this in ViewDidLoad fixes it can you confirm pls :] self.edgesForExtendedLayout = .Top self.extendedLayoutIncludesOpaqueBars = true You have

how to call function after every 1 hour?(Swift). Background fetch work when app is terminated?

谁都会走 提交于 2019-11-29 07:15:40
i am making app. which providing functionality of fetch data after every one hour. so even when my app terminate how can i call that function? after too much searching i found Background fetching by performFetchWithCompletionHandler but i want to know that this function will work if my app is terminated?what i mean is if my app is in closed or terminated state how can i call function automatically? You can't do anything if your app is in terminated state. Apple is not allowing anything (except receiving notification) in terminated or closed state. You are also restricted for background

How to open URL schemes from Safari in iOS9?

血红的双手。 提交于 2019-11-29 06:08:57
问题 I was able to open apps from safari this way: window.location = 'myapp://do/xx'; or open facebook app: window.location = 'fb://'; But this stopped working in iOS9. How can I open apps using URL schemes in safari? 回答1: IOS 9 URL Shchemes Update : iOS 9 introduces LSApplicationQueriesSchemes to allow apps to query if other apps are installed. 1- If a url scheme is declared and calling canOpenURL(scheme) YES if a installed app supports that URL scheme NO if no app supporting that url syslog will

xcode7 ios9 about libz.tbd is not an object file (not allowed in a library)

亡梦爱人 提交于 2019-11-29 05:52:53
问题 Error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/lib/libz.tbd is not an object file (not allowed in a library) If I replace libz.dylib with libz.tbd , xcode shows this bug. My project is a Cocoa Touch Static Library. 回答1: I found the solution here: https://forums.developer.apple.com/thread/4572 To summarize: Remove the libz.tbd

Xcode 6 with iOS 9?

只谈情不闲聊 提交于 2019-11-29 05:36:35
I'm fairly new to iOS development and I upgraded my device to iOS 9.0 beta, to see how my app faired. However, I did not upgrade to Xcode 7 beta. I'm getting an error that says my device is now "ineligible", specifically, iPhone (3) may be running a version of iOS that is not supported by this version of Xcode. Is this standard? Do I have to upgrade to Xcode 7 if I'm running iOS 9.0? Yes, you need to install Xcode 7 in order to develop for iOS 9. You are able to keep Xcode 6 running alongside Xcode 7. Hassan Chizari The problem with Xcode 7 is that it wants to change your swift code to be able