ios9

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

雨燕双飞 提交于 2019-12-12 08:32:59
问题 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

SSL iOS9 SSLHandshake failed. I checked with openssl & my server works with tls 1.2V

99封情书 提交于 2019-12-12 08:09:00
问题 Im getting these errors from my app in iOS9. It works great on iOS8. My server is using tls v1.2. So, I dont know where is the problem. 2015-08-04 16:52:24.319 Entumano[676:59469] CFNetwork SSLHandshake failed (-9824) 2015-08-04 16:52:24.324 Entumano[676:59469] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824) 回答1: I got the answer. In all post i read they were talking about tls version. BUT apple it's also validating that your ssl have this ciphers: TLS_ECDHE

Remove UIButton Programmatically in swift

与世无争的帅哥 提交于 2019-12-12 06:46:01
问题 I have added multiple buttons programmatically in my project. I use NSTimer in my viewDidLoad method to call the function to add more buttons every 5 seconds. My problem is I want to clear the buttons from the view which was previously created as new buttons are getting created on top of the old ones. override func viewDidLoad() { super.viewDidLoad() timer = NSTimer.scheduledTimerWithTimeInterval(5, target: self, selector: Selector("subtractTime"), userInfo: nil, repeats: true) } func

iOS 9 selecting tabbar index with quick actions, performActionForShortcutItem

此生再无相见时 提交于 2019-12-12 06:06:37
问题 I have 5 tabs and want to go to a specific tab when user select a certain Quick Action. However, I've tried using notification center, referencing the master viewcontroller and referencing the tab in app delegate but none seems to work. The tabbar.selectedIndex method does get called but for some reasons the tab isn't changing when using quick action. @available(iOS 9.0, *) func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem,

How to implement geofencing for iOS 9?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 05:08:31
问题 I need geofencing capability for my iOS 9 app. What API providers provides geofencing capability? I checked Foursquare and they don't seem to provide this. Geoloqi just got acquired and that option seems to be out of question as well. If no third party option is available, how does one go about implementing geofencing for iOS? 回答1: iOS has the ability to geofence without the need for a third party API. Core location should have everything you need. Check out this tutorial to learn more.

canOpenUrl fail “org-appextension-feature-password-management” (PayPal)

天大地大妈咪最大 提交于 2019-12-12 04:43:44
问题 PayPal payment not working as I get failure on opening a URL -canOpenURL: failed for URL: "org-appextension-feature-password-management://" - error: "(null)" In accordance with the documentation I added org-appextension-feature-password-management to my info.plist, but I still get the below error. Ideas what I might have overlooked? 回答1: Seems to be a bug in PayPal SDK. The error only occurs in the PayPalEnvironmentNoNetwork setting . When you switch over to PayPalEnvironmentSandbox or

XCTest UI Record and Play - Simulator not updating UI

。_饼干妹妹 提交于 2019-12-12 04:24:20
问题 Apple released a new UI Testing framework 2 days ago during WWDC2015. I'm trying to write a test case and when I try to record the UI testing, to generate the scaffolding code, it looks the code is being generated, however the UI on the simulator is not actually updating. i.e When I tap on a button, the code is generated to actually find the button and tap, but the button is not actually tapped simultaneously on the simulator. So basically I'm not able to go to the next screen on the

How to import SMS backup file(CSV format) took from Android to iPhone

别等时光非礼了梦想. 提交于 2019-12-12 04:22:47
问题 I have a SMS backup(CSV format) file exported from Android where each record is the text message. I want this file to be imported to iPhone programmatically. Could anyone help me how to do this in iOS. I'm not getting any resource for doing this so for. Any help is appreciated. 回答1: Recently, I succeeded extracting message records from iPhone backups. I generally understand the mechanism/design of iPhone backups. So I hope I can give you some hints in theory to do it. The possible steps:

iOS TableViewController Scrolling away content and navigation bar under status bar

穿精又带淫゛_ 提交于 2019-12-12 04:16:44
问题 I'm using a TableViewController and I've added my own navigation bar on top to match the other tabBar pages that I have. I had to place at the top an empty view to lower the starting point of the table view so it wouldn't cover my navBar , which was already annoying. Now it looks fine except that when I scroll up my list both navBar and TableView go under the status bar. I want my navBar to stay where it is and the TableView not to go under the status bar when scrolling. For starting I can't

Duplicate search results in spotlight

眉间皱痕 提交于 2019-12-12 03:53:08
问题 I have a requirement where I need to use NSUSerActivity and Corespotlight together. I see duplicate search results in spotlight even after I set relatedUniqueIdentifier =uniqueidentifer. Here is the steps I implemented in my project. 1) Create all CSSearchableItems in appdeleagte didFinishLaunchingWithOptions method. 2) Create NSUSerActivity in specific viewcontroller where relatedUniqueIdentifier = uniqueidentifer(CSSearchableItem) Appreciate your help. 回答1: The issue got resolved after