Search results for

A Summary of the WWDC25 Group Lab

10,091 results found

Post

Replies

Boosts

Views

Activity

How to deal with supposed gaps in the standard library?
Below are two examples of what one might assume to be gaps / missing protocols in the current standard library (Swift 2, Xcode 7 beta 2). I'd like to get advice on how to handle the particular situation described here as well as similar situations in general (ie how to handle the prevalence and successive diminishing of supposed gaps during the rapid evolution of Swift and its standard library).Ok. Consider the primitive number types in the standard library (Double, Float, Float80, UInt, Int, UInt8, Int8, UInt16 ... Int64). They share some common characteristics, some of which are explicitly available for us to use through protocols such as IntegerArithmeticType, FloatingPointType, IntegerType etc, and others which are only there implicitly.Two examples of such only-implicitly common features / missing protocols:The fact that any primitive number type can be (explicitly) converted to (initialized with) any other primitive number type.All the integer types have bounds specified by their .max and .min propertie
0
0
271
Jun ’15
Reply to Recovery Partition Issue. Resolved
Here are 2 other possible workarounds.1. Revert core storage.Another thing that may make a recovery partition invisible in the startup manager is core storage conversion upon installation of DP1 of el capitan.If the the el capitan installer creates logical volume groups, you can run this in terminal to get your partitions back to normal. This will also make a recovery partition visible when you boot up when holding the option key down.diskutil cs listand thendiskutil coreStorage revert lvUUIDwhere lvUUID is the last lvUUID reported by the previous Terminal command.You may have to restart for everything to get back to normal after you have run these commands in Terminal.2. Manually update the recovery partition.(I) Download the Lion Recovery Update from http://support.apple.com/kb/dl1464 . (And before you ask, YES. I mean LION recovery update!) Make sure it is in your downloads folder. If you still happen to have the el capitan DP1 installer somewhere, right click on the Install OS X 10.11 Developer B
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Memory Leak in Swift Structures
Hi, the posted code actually is a minimal example. You can download the Xcode project from here: https://www.dropbox.com/s/z6ugxzxqggrv1xl/SwiftStructsMemoryLeak.zip?dl=0I already reported a bug (21375421). It's really just a summary of this post with a step-by-step description for running the attached Xcode project.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Interesting Old Favorite Issue With iMessage Jabber Group Chats
AllI've seen this for a while now (old Yosemite betas and potentially before) where if you join a Jabber group chat room in iMessage that any message I post has 2 issues:1) The message appears at the bottom of the chat and out of sequence when others reply. i.e. I say Hello, someone else says Hello but their reply appears above mine instead of below even when they sent theirs later. Therefore iMessage is displaying them out of time sequence2) My messages are double or triple posted in the chat room. This only ever happens in group chats through Jabber and not when I am direct IM'ing someone even if still using Jabber as the medium.I raised a bug on this a while back and it was closed as a duplicate to another bug, one that is still open.Wondering if anyone else see's this behavior and has any suggestions as have not seen this behavior change in El Cap beta 1 or 2Thanks
0
0
95
Jun ’15
Can't access keychain after add App Groups on simulator
I am adding a new feature to my existing app and I have to add app group to project in order to share data between extension and app. However, after I added app group to project file, my code can't no longer retrieve data from previous keychain on simulator. It looks like it create a brand new keychain for the app. If I turn off app group and my app can retrieve data again. Does iOS create a different keychain after add app group to project? It's even weird is that thishappens only on simulator. When I test it on real device, app can retrieve keychain data without issue. I have go through some documents and found no information about this. Is it a bug on simulator? Can anyone gives feedback?Following is my environment:1. Xcode 6.3.22. Simulator iPhone 6 (iOS 8.3 12F69)
5
0
2.1k
Jun ’15
Complication image assets
I've added images to the Complication group in Assets.xcassets within my WatchKit Extension but I can't figure out how to load one of these images as a UIImage in code. Can anyone help me out with this?I just watched the Creating Complications with ClockKit WWDC video but the code sample just used UIImage(named: Background) and UIImage(named: Foreground)Thanks
4
0
6.8k
Jun ’15
Reply to Complication image assets
Problem solved. Basically I hadn't had any experience with Asset Catalog groups and wasn't including the group name when initializing my UIImage.The code I was looking for was:UIImage(named: Complication/Circular)UIImage(named: Complication/Modular)andUIImage(named: Complication/Utilitarian)Thanks
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
app groups not functioning with Swift 2
Hi, I have an app group that worked fine between my watch and iPhone using Swift 1. Now, however, nothing is saving to my app group when I use the same code to save and synch the data (and thus nothing appears on my watch).I believe the relevant code is here://in the AppDelegate var sharedData = NSUserDefaults(suiteName: group.RxRemindMe)//in my VC NSKeyedArchiver.setClassName(RxRemindMe.Medication, forClass: Medication.self) NSKeyedUnarchiver.setClass(Medication.self, forClassName: RxRemindMe.Medication) appDelegate.sharedData!.setObject(savedAsData, forKey: TheMedicationsShared) appDelegate.sharedData!.synchronize()if I run the same .setObject command on a non-shared userDefault object, I see bytes saved (size changes to some positive bytes) and my phone app can access the data. However, when I execute line 4 above via the shared group object, the object remains nil in size and nothing has changed. I thus can't recall the data either on the phone or on the watch. Is this a bug in
3
0
597
Jun ’15