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
📬 Subscribe to my newsletter
Get notified of my latest articles by providing your email below.