ios9

iOS9 - Sharing to Instagram (w/ hooks) not working

家住魔仙堡 提交于 2019-12-03 03:03:02
I'm currently updating one of my apps to be iOS9 compatible, and I'm having trouble with the share to Instagram function. I'm using the Instagram hooks as stated on their developer site: ( https://instagram.com/developer/mobile-sharing/iphone-hooks/ ) The image I wish to share is being generated successfully, with the .igo suffix, and the functionality is still working as intended on iOS8. It just seems to have broken with the new version of iOS. Here's the code for sharing to Instagram, using the UIDocumentInteractionController: NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"];

iOS9 AVSpeechUtterance rate for AVSpeechSynthesizer issue

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The AVSpeechUtterance rate does not work the same for iOS 9 and prior versions of OS. Which is the change I have to make so that the sentence is spoken at the same speed. Are there any other changes I need to make for iOS9? It seems that multiplying the AVSpeechUtterance.rate by 6.0 works fine. Thank you! 回答1: I also see the change after compiling with the new XCode. Below are my mappings from old to new speed. I now have different speed assignments if device is <= iOS8 or >= iOS9. iOS 8 iOS 9 Very Slow 0 0.42 Slower 0.06 0.5 My Normal 0.15

Detect which app is in foreground on iOS9 without jailbreak

人走茶凉 提交于 2019-12-03 02:38:53
问题 I'm trying to log users individual app usage on iOS9. I'd rather prefer that it wouldn't use jailbreak limited solutions , self explanatory. Doing the variation of this app on a jailbroken phone shouldn't be hard. This will certainly not be released on the App Store as Apple wouldn't allow it. I'm looking for any private API that can do this, any hidden iOS API's that can be used to do this. ANYTHING. What I've already looked through: how to determine which apps are background and which app

iOS 9 Splash screen is black

。_饼干妹妹 提交于 2019-12-03 02:34:47
问题 My apps' splash screens are all plain black after upgrading to iOS9. Does anybody know why this is? Some of them are using a .xib splash screen and some are using images, but they're all just black now. Does an app have to be built with Xcode 7 for the splash screen to work in iOS9? Has anyone seen some documentation on whether this is an intended breaking change from Apple? Thank you! UPDATE: Looking through the apps again it seems my older apps, which only had a Launch image and no .xib are

iOS9: canOpenURL returning false for WhatApp&#039;s url scheme

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my current project I need to share text on whatsapp from iOS app. Here is my code to share text on whatsapp:- NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } but canOpenURL always returning false in iOS9. Is there any iOS9 privacy policy ? Can anyone help me out. Thanks in advance. 回答1: In iOS 9 you must whitelist any URL schemes your App wants to query in Info.plist under the

iOS9 getting error “an ssl error has occurred and a secure connection to the server cannot be made”

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Since I upgraded my existing project with iOS 9, I keep getting the error : An SSL error has occurred and a secure connection to the server cannot be made. 回答1: For the iOS9, Apple made a radical decision with iOS 9, disabling all unsecured HTTP traffic from iOS apps, as a part of App Transport Security (ATS) . To simply disable ATS, you can follow this steps by open Info.plist , and add the following lines: NSAppTransportSecurity NSAllowsArbitraryLoads 回答2: Even though allowing arbitrary loads ( NSAllowsArbitraryLoads = true ) is a good

'invalid context 0x0' after Migration to iOS 9

冷暖自知 提交于 2019-12-03 01:26:21
I've migrated the app to iOS 9, and it works as usually, but there three log messages: <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. Maybe helps that the next message from Crashlytics is: [Crashlytics

iOS9 Share Extension can not debug on Xcode

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I build share extension from Xcode for the real device, Xcode arbitrarily stop debug. But when I launch for simulator, the problem does not occur. Environment Xcode 7.1.1 iOS 9.1 Details When I build share extension, Xcode shows "Finished running MobileSafari.app on iPhone", but Safari does not run. And, The square stop button is arbitrarily gray. So, I launch Safari by myself and choose my extension and post. The debug section does not show anything. Also, URL request is not sent Rails server. This is the picture when I build the share

Problems with window.history using JQuery/Javascript on Cordova app in IOS9

删除回忆录丶 提交于 2019-12-03 01:05:29
I'm having trouble with a Cordova app under IOS9 (beta). I'm using latest Cordova and JQuery mobile builds. The window.history is not getting updated which is causing the following failures: window.history.go(-1) fails to go back a page window.history.length is stuck at 1 even if you navigate three pages deep Links marked in jQuery as data-rel="back" fail to go back when pressed I've put together the following sample code which fails when run as a separate Cordova app under IOS9(beta) but works properly if you run it from an IOS9(beta) browser (link below). The fact that it runs from the

ios9 self signed certificate and app transport security

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've spent a while trying to get this working. I have an API that I'm connecting to that i'm trying to switch to SSL with self signed certificates. I have control on the server and app. I generated a self signed cert according to this: https://kyup.com/tutorials/create-ssl-certificate-nginx/ sudo openssl genrsa -des3 -out ssl.key 2048 sudo openssl req -new -key ssl.key -out ssl.csr sudo cp ssl.key ssl.key.orig & sudo openssl rsa -in ssl.key.orig -out ssl.key sudo openssl x509 -req -days 365 -in ssl.csr -signkey ssl.key -out ssl.crt I've