ios9

iOS Push Notification Banner shown twice for a single Push

戏子无情 提交于 2019-11-27 00:34:34
问题 I've noticed that sending a Push notification results in the following behavior: See how the banner is shown a second time, after a short delay? At first I thought that our backend was mistakenly sending 2 push notifications, one after the other. However, this appears to be default iOS behavior for a single Push notification. The banner is shown, then immediately "shown again". This results in this jittery UI shown in the gif. The banner appears to be received twice. Tested using iOS 9.0.2. I

iOS 9 ATS SSL error with supporting server

梦想的初衷 提交于 2019-11-27 00:23:23
问题 I installed Xcode 7 and tried running my app under iOS 9. I'm getting the infamous error: Connection failed! Error - -1200 An SSL error has occurred and a secure connection to the server cannot be made. The thing is my server DOES support TLSv1.2 and I'm using NSURLSession . What could be the problem then? 回答1: Apple has released the full requirements list for the App Transport Security. Turned out that we were working with TLS v1.2 but were missing some of the other requirements. Here's the

iOS 9 searchBar disappears from table header view when UISearchController is active

亡梦爱人 提交于 2019-11-27 00:20:25
问题 The structure: View1 (click a button) -> present modally (MyModalView: UITableViewController) MyModalView has UISearchController embedded. The searchBar of UISearchController is placed in MyModalView.tableView.tableHeaderView. It's been working fine since iOS 8.0. However on iOS 9, the searchBar disappear when the UISearchController is active. Please take a look at theses pictures below The modal view: UISearchController active on iOS 8: UISearchController active on iOS 9: The very standard

Xcode 7.2: In “Archive”: Getting the issue: “Cordova/CDVViewController.h’ file not found ”. While there is no such issues in building the app

别说谁变了你拦得住时间么 提交于 2019-11-27 00:01:31
问题 In iOS, I update 7.2. I'm able to build my existing project to my device with no problem. When it came time to archive the project to prepare for submission to the app store, however, I'm getting a build error - Cordova/CDVViewController.h file not found. I've gone through just about every fix/workaround that I've not found Stack Overflow, and Google, and none of them have worked for me. If I go back to Xcode 6.4 I can build and archive no problem, but I can't build to my device now that it's

Delay/Wait in a test case of Xcode UI testing

ⅰ亾dé卋堺 提交于 2019-11-26 23:49:59
问题 I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has a login screen where it makes a call to the server to login. There is a delay associated with this as it is an asynchronous operation. Is there a way to cause a delay or wait mechanism in the XCTestCase before proceeding to further steps? There is no proper documentation available and I went through the Header files of the classes. Was not able to find anything related to this. Any ideas

Swipe-able Table View Cell in iOS 9

人盡茶涼 提交于 2019-11-26 23:31:28
I want my table list to have a swipe-able menu like in iOS 8 (first introduced in iOS 7). I've found a Ray Wenderlich guide that is clear on how to do it, but it was written a year and 4 months ago and the code is in Objective-C. Did iOS 8 or the upcoming iOS 9 finally include this function in Apple's SDK? I know they made the "swipe to reveal delete function" built-in years ago. I don't want to waste my time implementing patched-together code to mimic the iOS 8 mail function, if Apple's new iOS is going to hand it to me in a neatly wrapped package. jose920405 Try this. (Updated for Swift 3.0)

kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9

不问归期 提交于 2019-11-26 23:10:00
We have an iOS app that connects to our server through HTTPS. When the app is built with the new iOS 9 SDK and ran under iOS 9, the following error occurs: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) The app uses AFNetworking 1.3.4 with pinned certs. The problem occurs if I connect to the server with its IP address. It works if I add the NSAllowsArbitraryLoads config, or if I connect to the server with its domain name. The Tomcat connector is configured with sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2". I have tried overriding the host name but it doesn't seem

IOS9.0升级后以及xcode7后引起的问题

拈花ヽ惹草 提交于 2019-11-26 23:04:25
一、iOS9 bitcode导致编译不通过的问题 首 先来说说bitco de,这到底是什么龟 ! 在 官方文档 App Distribution Guide–App Thinning (iOS, watchOS)一节中,有这样一个定义:Bitcode is an intermediate representationof a compiled program. Apps you upload to iTunes Connect that contain bitcodewill be compiled and linked on the App Store. Including bitcode will allowApple to re-optimize your app binary in the future without the need to submit anew version of your app to the store. 说的是bitcode是被编译程序的一种中间形式的代码。包含bitcode配置的程序将会在App store上被编译和链接。bitcode允许苹果在后期重新优化程序的二进制文件,而不需要重新提交一个新的版本到App store上。 而在What’s New in Xcode-New Features in Xcode 7中,还有一段如下的描述:

How to reliably detect if an external keyboard is connected on iOS 9?

给你一囗甜甜゛ 提交于 2019-11-26 22:38:57
问题 Previous to iOS 9, the most reliable method of determining whether an external keyboard is connected was to listen for UIKeyboardWillShowNotification and make a text field the first responder, as discussed in this question. The notification would fire when using the virtual keyboard, but would not fire when using an external keyboard. However this behavior has now changed with iOS 9. UIKeyboardWillShowNotification also fires when an external keyboard is connected, since the new keyboard

How to hide the shortcut bar in iOS9

帅比萌擦擦* 提交于 2019-11-26 22:21:15
I have a textfield with a hidden keyboard (since I'm using it with bluetooth). However, in iOS9 the shortcut bar keeps appearing. Is there a way to hide it too? Thank you so much! You can pass your textfield name in place of userNameTextField for which you want to remove shortcut bar. UITextInputAssistantItem* item = [userNameTextField inputAssistantItem]; item.leadingBarButtonGroups = @[]; item.trailingBarButtonGroups = @[]; OverD In Swift 2.0 if #available(iOS 9.0, *) { let item : UITextInputAssistantItem = yourTextView.inputAssistantItem item.leadingBarButtonGroups = [] item