Creating an abstract class in Objective-C

I’m originally a Java programmer who now works with Objective-C. I’d like to create an abstract class, but that doesn’t appear to be possible in Objective-C. Is this possible? If not, how close to an abstract class can I get in Objective-C? 2Best Answer 21 Typically, Objective-C class are abstract by convention only—if the author … Read more

@synthesize vs @dynamic, what are the differences?

What are the differences between implementing a @property with @dynamic or @synthesize? 8 s 8 @synthesize will generate getter and setter methods for your property. @dynamic just tells the compiler that the getter and setter methods are implemented not by the class itself but somewhere else (like the superclass or will be provided at runtime). … Read more

dispatch_after – GCD in Swift?

I’ve gone through the iBook from Apple, and couldn’t find any definition of it: Can someone explain the structure of dispatch_after? dispatch_after(<#when: dispatch_time_t#>, <#queue: dispatch_queue_t?#>, <#block: dispatch_block_t?#>) 26 s 26 A clearer idea of the structure: dispatch_after(when: dispatch_time_t, queue: dispatch_queue_t, block: dispatch_block_t?) dispatch_time_t is a UInt64. The dispatch_queue_t is actually type aliased to an NSObject, … Read more