ios9

On demand resources in iOS 9 - how to find out exact location of downloaded resources?

廉价感情. 提交于 2019-12-03 16:59:56
I'm trying to use ODR in my game which doesn't use xcassets. So, I've got a texture with a tag (e.g. "tutorial"), made it ODR in project settings and used the code below the get it downloaded: NSBundleResourceRequest *resourceRequest = [[NSBundleResourceRequest alloc] initWithTags:tags]; [resourceRequest conditionallyBeginAccessingResourcesWithCompletionHandler:^(BOOL resourcesAvailable) { if (resourcesAvailable) { // Upload the texture } else { [resourceRequest beginAccessingResourcesWithCompletionHandler:^(NSError * _Nullable error) { if (error) { NSLog(@"Failed to load assets pack"); } else

GIDSignIn iOS 9

不羁岁月 提交于 2019-12-03 15:43:56
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 function for iOS 9? Use this: //Google Login @available(iOS 9.0, *) func application(application:

iOS9: duplicated lines in crash reports are causing symbolicatecrash to get stuck

两盒软妹~` 提交于 2019-12-03 15:30:17
问题 This is not a question because I have already found a workaround. I am publishing it so that others can take advantage on the hours I was spending on it, and use my suggested workaround. I have got some strange crash reports - a single line was duplicated many times: ... 0x190e08000 - 0x190e49fff Notes arm64 <f45c09ce977b3282ab0e879252dfebee> /System/Library/PrivateFrameworks/Notes.framework/Notes 0x190f9c000 - 0x190fa6fff NotificationsUI arm64 <73dcb247ed183ce7bb330d7bb55f93bd> /System

iOS 9 - Facebook fails to open installed iOS app

社会主义新天地 提交于 2019-12-03 14:28:48
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 to populate info.plist with LSApplicationQueriesSchemes like this: <key>LSApplicationQueriesSchemes<

spritekit ios9 fps drop

半城伤御伤魂 提交于 2019-12-03 14:20:54
I've noticed a major drop in fps in my sprite kit game having upgraded from iOS 8.4 to iOS 9. Has anyone else encountered this? My texture atlases are still buried away in .atlas files. I've tried to use the asset catalog texture atlas functionality as an experiment and that gives even worse performance. Have you tried this? skView.ignoresSiblingOrder = YES; You will probably have to set some zValues explicitly after the change, but the number of draw calls will hopefully be reduced. You can BTW display the number of draw calls by this line: skView.showsDrawCount = YES; https://developer.apple

iOS9: Using dynamic framework with Simulator and Device

核能气质少年 提交于 2019-12-03 13:38:59
I created a dynamic cocoa framework that I would like to use across my apps. After I build the framework for an actual device, I bring it over to an app. I can only run the app on that device. When I try to run it on a simulator, framework files are not recognized. I get error messages: 'ViewController' is unavailable: cannot find swift for declaration for this class I tried building the framework for an iPhone 6 simulator and running the app on an iPhone 6 simulator, but the same problem persists. How can I create/build a single framework that I can bring into any app and be able to use it on

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

青春壹個敷衍的年華 提交于 2019-12-03 12:36:30
问题 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

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

吃可爱长大的小学妹 提交于 2019-12-03 12:36:14
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, CDMLCheckin) . Entity Properties and Relationship as described below: Relationship Properties: CDEvent

iOS9: UIDatePicker with datePickerMode of UIDatePickerModeTime only shows Hours, and no Minutes

限于喜欢 提交于 2019-12-03 12:05:22
I'm using Xcode beta 7 with the iOS9 simulator. Using a UIDatePicker with a datePickerMode of UIDatePickerModeTime only shows Hours, and not minutes. See screenshot: On iOS 7 and 8, obviously it works as expected, and shows both Hours and Minutes. Screenshot: I really do not want to reinvent the wheel and roll my own time picker. Any ideas on why this might be happening and how to fix? I can't find anything on google. thanks, Alex Found a useful description of this problem in the iOS 9 release notes - seems I should be reading these more carefully. UIPickerView and UIDatePicker are now

WatchOS 2 (beta 5): watchAppInstalled returns false

ⅰ亾dé卋堺 提交于 2019-12-03 11:09:40
The Watch App is installed on the watch and I can tap and run it on the Watch, but watchAppInstalled method returns false. Also, I can only install the Watch App using Xcode 7. If I try to install the Watch App using the Watch iOS app (from Apple) by turning on the switch, the Watch App gets deleted right after the installation completes. Update: This bug is fixed in Xcode 7 beta 6 Apple Documentation says: The session must be configured and activated before accessing this property. So, you should configure and activate the session before using this property. I had same issue. I just add