Search results for

A Summary of the WWDC25 Group Lab

10,091 results found

Post

Replies

Boosts

Views

Activity

Reply to app groups not functioning with Swift 2
Wait, so they can't share data anymore? I thought that was the point of app groups! And just to check I saved and then opened my shared app group on my phone app (not involving the watch at all)--still doesn't work. The issue is that when I use the .setObject command, nothing happens. It used to save my data into that object so I could retrieve it, but now nothing at all happens. Very frustrating since it took a working app and wrecked it (not the first or last time transferring to watchOS 2 and Swift too!).
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Remove NSUserActivity content from Spotlight?
Ah, nuts, got pulled away from my iOS 9 work and missed your response. Still trying to come up with the best way to track the new dev forums.I'm working on a social sharing app that lets you have relationships with other people (shocking, I know) and I wanted to make various relationships searchable - enter somebody's name into Spotlight and have that result take you directly to the detail view in the app that displays your relationship with that person. If you choose to sever the relationship with that person, I want to remove them from the search index. My original implementation was creating the NSUA when the user navigated to a distinct relationship view.My theory was you'd be more interested in seeing you old college friend Jane, who you interract with regularly, than Jane, your second cousin twice removed who you don't really like but can't de-friend because, well, family. I realize I could be attempting to recreate the smarts that you folks have already built into Spotlight.I thought I saw Address Book
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Reply to Remove NSUserActivity content from Spotlight?
I'm working on a social sharing app that lets you have relationships with other people (shocking, I know) and I wanted to make various relationships searchable - enter somebody's name into Spotlight and have that result take you directly to the detail view in the app that displays your relationship with that person. If you choose to sever the relationship with that person, I want to remove them from the search index. My original implementation was creating the NSUA when the user navigated to a distinct relationship view.I think what you should do is use CoreSpotlight to index the relationship/person information, and then use NSUA to layer on top of that the additional information about how the user navigates those relationships. A couple points to consider:Using CoreSpotlight will allow you to index all the relationships a user has established regardless of whether they have viewed them in your app. If you didn't do this, users wouldn't be able to search for somebody without first having viewed them in the ap
Topic: App & System Services SubTopic: General Tags:
Jun ’15
I can't get the shared NSUserDefaults to work with WatchKit and my host app!
Hi, i am having a hard time with user defaults atm, situation is the following...I am using xcode 7 beta( 7A121l) and i used the template for an ios app with an watchkit app togetherI let xcode set up the provisioning profiles and set up an app group and added all the apps to it..What i tried was putting stuff (string) in the userdefaults, and getting it out again from the watchkit app extension to display it in the ui of the watch app,i tried i failed.. after a few hours and out of pure frustration i added a today extension target and also added that to the app group, and automagically it worked :-OSo my setup is the following:ios app, watchkit app, watchkit app extension - everyone with a own provisioning profile (ofc they share one prefix)i got the setting right, in capabilies and i checked the plist's also for xcode fuckups, and it works on today extensioni set up the userdefaults with initWithSuite: but i dont even get the same container URL on the watch simulator and the ios app simula
2
0
2.2k
Jun ’15
Reply to IdentifierForVendor changed unexpectedly + forum is broken
Right now I'm looking into the App Group entitlement to give us shared NSUserDefaults. It sounds like App Group (unlike iCloud and keychain-access-group entitlements) is shared on the device, but not over the iCloud account. I'm thinking if the shared deviceid NSUserDefault key doesn't exist, we'll save the IdentifierForVendor ID and then use that for all our apps once it saved.I'm curious if anyone else has tried that workaround.
Jun ’15
Reply to I can't get the shared NSUserDefaults to work with WatchKit and my host app!
NSUserDefault, using shared groups are no longer supported with iOS 9 and watchOS 2 since the watch extension is now running on the watch itself instead of on iOS. You'll need to take a look at the WatchConnectivity Framework if you want communication between watchOS 2 and iOS 9.Here is the framework reference: https://developer.apple.com/library/prerelease/ios/documentation/WatchConnectivity/Reference/WatchConnectivity_framework/index.htmlAlso take a look a the lister sample code here:https://developer.apple.com/library/prerelease/ios/samplecode/Lister/Introduction/Intro.html#//apple_ref/doc/uid/TP40014701
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Reply to Shortcut bar API
The UITextInputAssistantItem contains 2 arrays, leadingBarButtonGroups and trailingBarButtonGroups. You can add instances of another new class, UIBarButtonItemGroup, to these arrays to add or replace items on the short cuts bar. UIBarButtonItemGroup has 2 major properties, barButtonItems and representativeItem, that you can in turn fill out to specify what is on the bar. Finally to hide the bar (assuming that predictive text is also off) you can set the leading & trailing groups to an empty array.Example:NSArray barButtonItems = @[ /* Create UIBarButtonItems and place them here */ ]; UIBarButtonItem representativeItem = // This is optional, if present when there isn't enough room on the bar, the group will be replaced with this item UIBarButtonItemGroup *group = [[UIBarButtonItemGroup alloc] initWithBarButtonItems:barButtonItems representativeItem:representativeItem] textView.inputAssistantItem.leadingBarButtonGroups = @[ group ]; // replace the items on the bar. Altern
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’15
Reply to Xcode 7 possible bug - SourceKitService
+1 This fault happens ~80% of the time.Process: SourceKitService [88642] Path: /Xcode//Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService Identifier: SourceKitService Version: 1.0 (700.0.42.3) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [88591] User ID: 502 Date/Time: 2015-07-01 06:56:16.746 +0200 OS Version: Mac OS X 10.10.3 (14D136) Report Version: 11 Anonymous UUID: 85DF8F01-C036-BABB-C01A-14EB25054544 Sleep/Wake UUID: CB5F0B17-CF88-4E3D-B766-71B43FBA1AE9 Time Awake Since Boot: 130000 seconds Crashed Thread: 13 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000080 VM Regions Near 0x80: --> __TEXT 000000010022e000-000000010239e000 [ 33.4M] r-x/rwx SM=COW /Xcode//Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to Reordering View Controllers in the Document Outline when in the Storyboard
Thank you junkpile for your reply. I'll look into this grouping of VCs.The large number of VCs is unavoidable for my application. I started my project using the page based application template that Xcode offers. It is a comic book, and on some of the pages there is animation and sound. The graphics and sound relies on NSTimer as a trigger. But because Apple's template recycles the view controller on the fly when the user turns the page, programmatically you stay on the same View Controller ( which is very clever on Apple's part ) I am not able to stop the sound if the user decides to turn the page before the animation finishes. This creates a very unprofessional looking (and sounding) app.I got around this using 2 methods - ignoreInteraction & respondToInteractions which prevented the user from turning the page until the animation was finished. But I could see how this would annoy a user if they wanted to turn the pages back or forward for some reason. They would have to stop and wait for the ani
Jul ’15
Reply to Why is DownloadEarthquakesOperation a GroupOperation
DownloadEarthquakesOperation is a group operation because of self.When creating the NSURLSessionTask, I needed to capture self inside the completion block in order to handle the results. However, if this were a URLSessionTaskOperation, I wouldn't be able to reference self before the call to super.init(task:), but I would have to do it before calling super because super requires the NSURLSessionTask. So there's this stalemate where I have to configure the task before calling super, but I can't configure the task before calling super because I need self.The quickest way to work around this was to not subclass URLSessionTaskOperation, but instead put it inside a group, where I have explicit control over the timing of the creation of the operation.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Watch app behaviour if watch is paired with two different devices one after another?
I have a scenario, I need someone to help me understand the working of watchOS 2. If I have two devices (iphone 5s, iphone 6) and both contain a particular watch app (say MyWatchApp). What will happen to the MyWatchApp data (e.g. any settings) if I pair the device with the second device after having it paired with the first device. Will it reinstall the app or will it just remove the data (document directory, app groups, etc)?Thanks
2
0
267
Jul ’15