ios9

Universal links on iOS vs. deep links (URL schemes)

柔情痞子 提交于 2019-12-02 14:08:25
As I'm reading, iOS 9 introduced Universal Links. In the "Support Universal Links" section in Apple's App Search Programming Guide , it says that this is not exactly like deep linking with URL schemes, but I'm not totally clear about this topic: What is actually the difference(s) between Universal Link and the URL Schemes? Is it that a Universal Link is only for hyperlinks in websites, and the Mail or Messages apps? Do Universal Links replace URL schemes? Are Universal Links a type of deep link? Universal links is the iOS's capability of sending web url request to a given app, instead of

About ATS SSL in iOS 9 release version

久未见 提交于 2019-12-02 12:34:14
My apps use http, and doesn't update for iOS9 yet. Today I upgraded to iOS9 on my iPad, all my apps are still working using http. It seems Apple doesn't force https in iOS9 release version. Does anybody know when will Apple force do it or Apple won't do it? For some reason, I don't want to update my apps. ATS is enabled on apps that are built on Xcode 7 but not on apps that are built with an earlier version of Xcode. This is to prevent hundreds of thousands of apps from 'breaking' on iOS 9. If you rebuild your app using Xcode 7, ATS will be enabled for your app and you will either need to

This app is not allowed to query for scheme XYZ://

三世轮回 提交于 2019-12-02 12:33:05
问题 You might think it's a duplicate question, but it's not, I'm totally aware of all the answers on SO about the canOpenURL and its caveats on iOS 9, but here is my problem: I'm trying to check if an specific app is installed on my device (both developed by me). I have declared the scheme on AppA as: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>com.my.company.id</string> <key>CFBundleURLSchemes</key> <array> <string>XYZ</string> </array> </dict> </array> and on

What is replacement of CFReadStreamCreateForStreamedHTTPRequest?

扶醉桌前 提交于 2019-12-02 12:30:29
In my objective C project i am using Segment 1). [(NSInputStream *)CFReadStreamCreateForStreamedHTTPRequest(kCFAllocatorDefault, request,(CFReadStreamRef)[self postBodyReadStream]) autorelease] but CFReadStreamCreateForStreamedHTTPRequest is deprecated what can i write alternatively ? I tried NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request Error throws:- Incompatible pointer types sending 'CFHTTPMessageRef' (aka 'struct >__CFHTTPMessage *') to parameter of type 'NSURLRequest * _Nonnull' Segment 2). (NSString *

Core Data Update in swift while selecting any row in list table view not working?

纵饮孤独 提交于 2019-12-02 11:24:57
I have got a scenario in which I have 2 VC which are - VC1 - To enter detail & save the data. VC2 - To display the datas in a table view. Now I want that whenever I select any particular row I would update my Database at the particular row. For that I am passing the selected managed object at that particular row for which I use the following code. VC2 class name - ViewController Code to fetch request - func fetchData() { let appdelegate = UIApplication.sharedApplication().delegate as! AppDelegate let managedContext = appdelegate.managedObjectContext let fetchRequest = NSFetchRequest(entityName

Push notification is not receiving on device

ぐ巨炮叔叔 提交于 2019-12-02 10:39:07
I am using push notification through PHP script. Code seems to be working fine, it does not give me any error. But notification does not receive me on my device. Here is my code: $passphrase = '123'; $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', 'cert.pem'); stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase); $fp = stream_socket_client( 'ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); // Create the payload body $body['aps'] = array( 'alert' => $message, 'sound' =>

This application is modifying the autolayout engine from a background thread - ios9

房东的猫 提交于 2019-12-02 10:14:36
问题 let url = NSURL(string: "http://api.mdec.club:3500/news?") let task = NSURLSession.sharedSession().dataTaskWithURL(url!) { (data, response, error) in self.jsonResult = try! NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers) as! NSMutableArray self.tableView.reloadData() } task.resume() I don't understand why I'm getting this error. I have to put the reloadData() method inside task because I have to wait till the get the data. How else can I reload

Firebase/Swift 2 - How to get an authenticated users password and email

梦想与她 提交于 2019-12-02 09:32:24
I'm trying to setup a password reset within an app using swift 2 and Firebase. Following Firebases example: let ref = Firebase(url: "https://<YOUR-FIREBASE-APP>.firebaseio.com") ref.changePasswordForUser("bobtony@example.com", fromOld: "correcthorsebatterystaple", toNew: "batteryhorsestaplecorrect", withCompletionBlock: { error in if error != nil { // There was an error processing the request } else { // Password changed successfully } }) How can I access an authenticated users email & password in order to pass those values to this function instead of the current mock data? I'm not interested

UITabBar and back button disappears in iOS 9

柔情痞子 提交于 2019-12-02 05:46:57
问题 In iOS 9, when I segue from a table to a navigation controller, the nav bar and the tab bar disappear. As a result, my users will be hosed. How to fix it? My StoryBoard structure is basically this: ->Tab Bar Controller->Nav Controller->Table View->Nav Controller->Table View->.... When I select a row in the first table view, the segue occurs, but the tab bar and back buttons disappear. ----> Notice the missing parts in the right picture. DTS request has been filed, bug was reported months ago

my app on iPhone 6,6s,6p and 6sp is stretched after upgrade to iOS9

此生再无相见时 提交于 2019-12-02 05:37:32
问题 The app works fine on ios9 simulator and on any real devices with ios8. But on iphone 6 and 6p, when ios upgrade to ios9, the app is stretched and the layout is same as iphone5. I have also checked the LaunchImage in images.xcassets. There are four launch images:Retina HD5.5, Retina HD4.7(iphone portrait ios8,9), 2x and Retina 4(iphone portrait ios7-9). I don't know why the app is stretched. Thank you. 回答1: Provide LaunchScreen.xib file for your Xcode instead of launch images. This way you