In iOS Development,
@ is a shorthand/syntactic sugar unique to Objective-C that does different things depending on the context. For example, for NSArray literals,
@ returns an
NSArray object initialized with the comma-delimited list of objects as its contents.
The below two lines are equivalent:
@ sign is also used for
@implementation, properties through
@synthesize, and instance variable visibility such as
📬 Get updates straight to your inbox!
Subscribe to my newsletter to make sure you don't miss anything.