what is the use of @[ ] in objective c

ios5, ios6, iphone, nsarray, objective-c

Solution

NSArray *objectsToShare = @[objects];

is the same as

NSArray *objectsToShare = [NSArray arrayWithObjects:objects count:count];

Problem

I have seen ``` NSArray *objectsToShare = @[objects]; ``` when looking at some example code. What is the meaning of `@[objects]` here ?

Original source

Related problems