ios9

Is there a way to hide “Back to Safari” from status bar in iOS9?

给你一囗甜甜゛ 提交于 2019-11-28 09:42:04
How to hide this < Back to Safari from status bar programmatically? I'm getting it in my app – as I'm going out from my app if a user wants to login with their Facebook account. Here's the scenario for which I don't like (want) "Back to Safari" in my app. At first launch of the app (and user not logged in). User choose Login with Facebook option. Facebook iOS SDK comes into the picture, it takes me to the Safari. I logged in and back to the app But, there's "Back to Safari"... It shouldn't be here anymore. No, there is no API that lets you do this. You can achieve this by forwarding to a

How to support iOs 9 feature(s), while keeping iOs 8 support?

最后都变了- 提交于 2019-11-28 08:48:59
问题 Basically the question is in the title. I'm sure there's a way to ship your app to an earlier version of iOs (8 in this case), while still being able to use an exclusive feature of a newer OS version. Example: My app has a minimum support of iOs 8.3, and with the latest release of iOs 9, I wanna add support to force touch (which is only available in iOs 9), but in the same time, I want to be able to fix bugs and do UI improvements for example and ship the update to both versions. Major apps

UITapGestureRecognizer not working on iOS9

谁说胖子不能爱 提交于 2019-11-28 08:21:59
问题 I have an application which uses UITapGestureRecognizers which seem to not work in iOS9 Beta 2. They are successfully calling - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { NSLog(@"shouldReceiveTouch"); return YES; } but it doesn't hit any of the other UITapGesture delegate methods. When I run the same application (from Xcode 7) on a device running on iOS 8, it works as expected. Has anyone else hit this? Here is how I initialise the

“This app is not allowed to query for scheme cydia” IOS9 error

房东的猫 提交于 2019-11-28 08:16:44
I have an app where I hit a HTTP Request <NSURLConnection: 0x12d755110> { request: <NSMutableURLRequest: 0x12d754e10> { URL: http://XX.XX.XX.XXX/webService/dataService.svc/SearchLocation } } Now, whenever the above request is made I get the following error and no data is received in the response. After 60 Sec I get " Time Out error ". It is working fine on IOS8 and below but not working gin IOS9. Could anybody let me know what else have I got to do with this issue. Also, I have done the following changes regarding ATS for iOS9 in info.plist, but still facing the issue. Please let me know how

iOS9 App has black bars on top and bottom

半世苍凉 提交于 2019-11-28 08:14:49
My app doesn't use auto layout, it was originally designed for an iPhone 4/4s and the UI has been mostly untouched since then. The layout is fairly minimal, so it hasnt been deemed a priority to switch it autolayout. Previously building for iOS8 my app would scale properly on iPhone 5, and newer, filling the screen. The View itself would fill the entire screen, while the icons would scale proportionally (such that they were not distorted). however it seems now that using the iOS9 beta the app receives black bars at both top and bottom, and its basically displayed as a scaled iPhone 4 app,

enumerate is unavailable call the enumerate method on the sequence [duplicate]

情到浓时终转凉″ 提交于 2019-11-28 07:41:34
问题 This question already has an answer here: Swift 2.0 : 'enumerate' is unavailable: call the 'enumerate()' method on the sequence 3 answers Just downloaded Xcode 7 Beta, and come up with this error on enumerate error: enumerate is unavailable call the enumerate method on the sequence func layoutSpecialKeysRow(row: [Key], keyWidth: CGFloat, gapWidth: CGFloat, leftSideRatio: CGFloat, rightSideRatio: CGFloat, micButtonRatio: CGFloat, isLandscape: Bool, frame: CGRect) -> [CGRect] { var frames =

iOS 9 read file permission

好久不见. 提交于 2019-11-28 07:25:19
问题 In iOS 9+ I get a nil on any attempt to read from file. The file in this case is a image file path. using NSData(contentsOfFile: stringpath, options: NSDataReadingOptions.DataReadingUncached) or NSData(contentsOfFile: stringpath) Actions: I have removed the "file://" from the path and it now has a permissions issue. Error Domain=NSCocoaErrorDomain Code=257 "The file “IMG_0048.JPG” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/var/mobile/Media/DCIM

How big can the payload be when sending data via WatchConnectivity?

隐身守侯 提交于 2019-11-28 06:32:42
When sending data using the WatchConnectivity framework, either from the phone to the watch or vice-versa, how big can the payload be before the framework gives me the WCErrorCodePayloadTooLarge error? I couldn't find the answer on Apple's documentation, and there doesn't seem to be much information on this on the internet at this time (in fact, googling WCErrorCodePayloadTooLarge gives me just 4 results). Has anyone tested to try to find the answer to this? If this question doesn't get an answer, I will try to do it myself and post the results. So far, all the information I have is that it

Swift 2 migration problems

时光怂恿深爱的人放手 提交于 2019-11-28 06:14:21
问题 I just opened my old project in Xcode 7 beta. The code works perfectly fine in Xcode 6, but now it's showing many error. I don"t know what those are. Can anybody explain why this happened, and how to fix it? Thank you! Here is the Code import UIKit import AVFoundation class ViewController: UIViewController { var player: AVAudioPlayer = AVAudioPlayer() @IBOutlet weak var firstCardImageView: UIImageView! @IBOutlet weak var secondCardImageView: UIImageView! @IBOutlet weak var label: UILabel! var

Xcode 8 Core Data Template for iOS 8,9

孤街浪徒 提交于 2019-11-28 05:06:36
I'm developing an app in a new Xcode 8 and I noticed an obvious thing. Xcode generated me Core Data with the latest API references. So if I change deployment target to iOS 8 or 9, it conflicts and propose me to take in brackets: AVAILABLE my Core Data code. That means I have to write from scratch Core Data code from previous API. Does anybody have template for AppDelegate with both of them or maybe it's possible to make Xcode generate them? Thanks in advance! Because no one should have to download Xcode 7, install it, start a new project, and port the template code to swift 3 just to utilize