ios9

Can iOS 9 on-demand resources be kept permanently?

放肆的年华 提交于 2019-12-09 15:00:17
问题 According to the documentation, iOS 9 on-demand resources downloaded through a NSBundleResourceRequest are kept only until endAccessingResources is called, and it is called automatically when the resource request object is deallocated . Okay, but when the app terminates, everything is deallocated. So does this mean that resources downloaded using a NSBundleResourceRequest don't survive termination of the app? I was hoping to use a simple strategy of making my app smaller for download from the

Handoff and Universal Links failed on iOS 9

对着背影说爱祢 提交于 2019-12-09 13:56:15
问题 I am setting up my apple-app-site-association file follow this tutorial: Handoff works on iOS 8 but handoff does not work on iOS 9. I setup a free hosting site and upload the apple-app-site-association file onto the root of website: universallink.net46.net 1. I created a JSON file and named it handoff.json: { "activitycontinuation": { "apps": ["XXXXXXXXXX.com.home.handoff"] }, "applinks": { "apps":[], "details": { "XXXXXXXXXX.com.home.handoff": { "paths":["*"] } } } } The XXXXXXXXXX here is

wkWebView fails to play local audio

醉酒当歌 提交于 2019-12-09 13:28:02
问题 Since the release of iOS9, we can render local HTML with a wkWebView using loadFileURL:allowingReadAccessToURL: This looks good so far, but we are having problems playing a local mp3 from within the HTML. There is an <audio> tag with a src attribute with a relative path to the mp3 file. The iOS9-Simulator plays our mp3 correctly, but physical devices don't. Catching the error with JavaScript shows a networkState NETWORK_NO_SOURCE , which does not make sense to us... Using an http URL as src

GIDSignIn iOS 9

醉酒当歌 提交于 2019-12-09 13:17:24
问题 Using Googles SignIn in my AppDelegate I have func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool { return GIDSignIn.sharedInstance().handleURL(url, sourceApplication: sourceApplication, annotation: annotation) } But that function is deprecated as of iOS 9 for application:openURL:options: How to return GIDSignIn.sharedInstance().handleURL(url, sourceApplication: sourceApplication, annotation: annotation) Using the new

iOS 9 - Facebook fails to open installed iOS app

不羁岁月 提交于 2019-12-09 12:57:45
问题 iOS 9 & Facebook question Before iOS9, a Facebook post could successfully redirect an user to an installed app via short URL (like bet365://). Now, in iOS 9, bet365:// gives invalid link. From Safari it redirects fine, but not from Facebook browser. This is just an example, there are other apps that can't be opened from FB. What do I need to do in order to open an installed iOS app from a Facebook post (in iOS9)? PS: I understood that now, in iOS9, if Myapp1 wants to open Myapp2, it will need

Core Data (After Adding Unique Constraint) : annotation: repairing missing delete propagation for to-many relationship

倖福魔咒の 提交于 2019-12-09 09:37:32
问题 This issue started occurring after we added Unique key i.es Constraint. Frequently updating Meeting managed object deletes the event managed object which has a to-one inverse relationship from meeting managed object. Error CoreData: annotation: repairing missing delete propagation for to-many relationship meetingList on object 0x60c00009c4d0 (0x60c000621e40 ) with bad fault 0x60800009ac20 (0x60800023a360 ) Data Model I have three entities in my core data model i.es (CDEvent, CDMeeting,

CoreData: Failed to load optimized model at path

不羁的心 提交于 2019-12-09 05:32:54
问题 I am getting this warning multiple times when i goto a view using google maps.This started as soon as i migrated to swift 2.0 and xcode 7 for my exising project .Im using google maps in my project. See the console log below I have gone through some links but was not helpful https://code.google.com/p/gmaps-api-issues/issues/detail?id=8459 https://forums.developer.apple.com/thread/14157 回答1: In my case I needed doing 1) update cocoa pod, 2) setup again, and 3) update pods. 1) $ gem update

How to push SFSafariViewController?

末鹿安然 提交于 2019-12-09 05:10:13
问题 2 strange things happen when I try to push Safari ViewController: Its adress bar with Done button is placed below my Navigation Bar; Delegate method safariViewControllerDidFinish: does not get called when I press back button. I don't think Apple would approve of this behavoir, so: Is there a way to push Safari ViewController without these problems? 回答1: Do not push a SFSafariViewController with the pushViewController:animated: method, instead, use the presentViewController:animated:completion

Disabling ATS for an in-app browser in iOS 9?

亡梦爱人 提交于 2019-12-09 01:40:16
问题 iOS 9 introduces App Transport Security (ATS) to encourage the use of secure connections. This is great, but what if my app has a built in web browser that the user should be able to use to connect to any website? For example, the Facebook app allows stories to contain links to external websites. When the user taps such a link, rather than launching Safari, it launches an in-app browser. How can I get this same behavior without enabling the global NSAllowArbitraryLoads flag? I want all the

After update iOS 9 and Facebook sdk 4.6 the login window not open

感情迁移 提交于 2019-12-08 22:01:29
问题 I update my Xcode to 7 , and Facebook to 4.6 sdk. this My warning : Warning: Attempt to present <FBSDKContainerViewController: 0x159337700> on <UIAlertController: 0x159262700> whose view is not in the window hierarchy! in My project the BitCode is NO - because if I turn it to Yes I got this Error : ld:'/Users/MyName/Desktop/MyProjectName/ProjectName/ProjectName/Resources/Frameworks/Fabric.framework/Fabric(Fabric.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode