Please merge this account with user 742512

Aug
26
comment Setting action for back button in navigation controller
Make sure your view controller sets itself as the delegate of the inherited navigationController and conforms to the UINavigationControllerDelegate protocol
Feb
9
awarded Popular Question
Feb
2
awarded Curious
Jan
19
awarded Necromancer
Dec
15
comment CloudKit notifications
Yup that seemed to be the issue. I deleted all subscriptions and now is working. Thanks!
Dec
15
accepted CloudKit notifications
Dec
12
revised CloudKit notifications
added 231 characters in body
Dec
12
comment CloudKit notifications
Ok. I've tried this but can't seem to get this to work. Is there a different id besides %@ inside the string I should be using for swift code? My notification just repeats the string "Added: %@" and doesnt replace with my record data.
Dec
9
asked CloudKit notifications
Nov
28
awarded Yearling
Nov
24
comment Why can't I use subscripting on a CKRecord object in swift?
It even says in the header file: In addition to objectForKey: and setObject:forKey:, dictionary-style subscripting (record[key] and record[key] = value) can be used to get and set values.
Nov
24
asked Why can't I use subscripting on a CKRecord object in swift?
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Aug
27
comment Creating mock cloud kit objects for unit testing
After a quick look it seems like a MockProtocolExtension is totally doable if not completely insane. A lot of extra boiler plate. In the midst of this code I've realized that since CKDatabase takes so many completionHandlers: I could just have these completion handlers be methods of my class (somehow) and call these methods with my unit tests. I'd never mock CKDatabase but I would call the completion handlers/methods in my unit tests making sure I aped all the possible returns I could get from CKDatabase.
Aug
27
comment Creating mock cloud kit objects for unit testing
My newest thought is to create an protocol extension of CKDatabase with my own wrapper methods to CKDatabase methods. Since my object would be a Protocol instance of unknown class type I could then mock an object of that protocol. Phew. Maybe to much spaghetti here.
Aug
27
comment Creating mock cloud kit objects for unit testing
Thanks. I'll check that out. I'm assuming then you don't do unit testing for the Cloud Kit portion in that framework but mock your DAO object only.
Aug
25
asked Creating mock cloud kit objects for unit testing
Jun
18
comment Swift to Objective-C header not created in Xcode 6
I seemed to have followed these 2 steps and still seem to be having issues. I'll try starting a new project without the space in the name and see if i can get it to work.
1 2 3 4