ios9

Hiding Cancel button on search bar in UISearchController

只愿长相守 提交于 2019-11-26 22:02:45
问题 I'm trying to hide the Cancel button of the search bar in the UISearchController, but unfortunately setting the following in viewDidLoad() does not work: override func viewDidLoad() { super.viewDidLoad() searchResultsTableController = UITableViewController() searchResultsTableController.tableView.delegate = self searchController = UISearchController(searchResultsController: searchResultsTableController) searchController.searchResultsUpdater = self searchController.searchBar.sizeToFit()

Api Call Error in Xcode 7 / iOS 9 (how to setup App Transport Security in plist)

这一生的挚爱 提交于 2019-11-26 21:53:38
问题 I am using xcode 7 beta version. Now, I am working an API. If, I use the API in Xcode 6.3 it works fine but when same API I used in xcode 7 error message appears Unable to parse. here is the API i am using Please help me out. Thanks in Advance 回答1: In iOS9, Apple added new feature called App Transport Security(ATS). ATS enforces best practices during network calls, including the use of HTTPS. Apple Pre-release documentation: ATS prevents accidental disclosure, provides secure default behavior

iOS9: Alternative to UIDevice.currentDevice().setValue(…) to force orientation

六月ゝ 毕业季﹏ 提交于 2019-11-26 21:40:09
问题 It seems to me this does not work anymore in iOS9. It was the de facto way of forcing orientation changes based my SO research. It now freezes my SpriteKit game. Is it just me, and if not does anyone know of an alternative? EDIT : Portrait and UpsideDown still work. It seems only Landscape modes now cause a freeze EDIT 2: Actually I think you can go Portrait <--> UpsideDown and LandscapeLeft <--> LandscapeRight, but not in between them 回答1: Adding to Alex's answer: My experience is that Apple

UIAlertController - add custom views to actionsheet

纵然是瞬间 提交于 2019-11-26 21:27:21
I'm trying to make the actionsheet as it shows in the messages app on iOS when we try to attach an image as in the screenshot. I realized in new UIAlertController, we can't fit any custom views. Any way I can make exactly this? My code looks pretty standard. let alertController = UIAlertController(title: "My AlertController", message: "tryna show some images here man", preferredStyle: UIAlertControllerStyle.ActionSheet) let okAction = UIAlertAction(title: "oks", style: .Default) { (action: UIAlertAction) -> Void in alertController.dismissViewControllerAnimated(true, completion: nil) } let

iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

六月ゝ 毕业季﹏ 提交于 2019-11-26 20:41:34
I've updated to Xcode 7 and the latest iOS SDK. I've added the appropriate entries in my app's plist: My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting: -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" And login is not working. I've seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I've also seen Facebook SDK 4.5 IOS 9 but it's answer doesn't solve my problem. Why am I getting this error on simulator and not on device even though I've done the checklist at https:/

iOS9 does not load insecure resources from a secure page (SSL/HTTPS)

蓝咒 提交于 2019-11-26 20:17:17
I am trying to load a page into UIWebView on iOS9 using https:// URL. The page loaded includes CSS and images from an insecure server. E.g. the page loaded: https ://www.example.com/ which includes stylesheet http ://www.example.com/style.css and image http ://www.example.com/image.jpg Everything works if the original page is loaded via insecure connection (regular http). Everything works also on iOS8 both via HTTPS and HTTP. I did set NSAppTransportSecurity to NSAllowsArbitraryLoads in application PLIST file: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <

Is it possible to opt your iPad app out of multitasking on iOS 9

谁说我不能喝 提交于 2019-11-26 20:15:05
I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app? Sega-Zero You have to modify your project to support multitasking. According to WWDC 2015 video , to adopt your app for multitasking, satisfy these requirements: Build your app with iOS 9 SDK Support all orientations Use Launch Storyboards So, if any of this is not done yet, your app will not be able to support multitasking. Of course, if you don't use

How to play mp3 audio from URL in ios swift

*爱你&永不变心* 提交于 2019-11-26 20:13:22
问题 I am getting mp3 url as a response of api calling. I want to play that audio, so how can i do that? (ios swift) here is my response { content = "En este primer programa se tratar\U00e1n asuntos tan importante como este y aquel sin descuidar un poco de todo lo dem\U00e1s"; file = "http://radio.spainmedia.es/wp-content/uploads/2015/12/ogilvy.mp3"; image = "http://radio.spainmedia.es/wp-content/uploads/2015/12/tapas.jpg"; number = 0001; subtitle = Titulareando; title = "Tapa 1"; } here is my

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

蓝咒 提交于 2019-11-26 20:07:48
问题 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. 回答1: This is my code if (&UIApplicationOpenSettingsURLString != NULL) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]]; } Try to add prefs to URL schemes like https://stackoverflow.com/a/31253743

Apple Live Photo file format

给你一囗甜甜゛ 提交于 2019-11-26 19:40:57
问题 Apple will introduce Live Photo in iOS 9/iPhone 6s. Where is the file format documented? 回答1: Here's the link. Otherwise, here's the text: Live Photos Live Photos is a new feature of iOS 9 that allows users to capture and relive their favorite moments with richer context than traditional photos. When the user presses the shutter button, the Camera app captures much more content along with the regular photo, including audio and additional frames before and after the photo. When browsing