I just started a new project in xCode and saw this lines in the app delegate:
self.tabBarController.viewControllers = @[viewController1, viewController2];
I understand this is an array but It is new to me in Obj-C.
Can anybody explain where this syntax coming from ?
This is a new syntax that has been recently added to Objective C. There is also a new syntax for
NSNumbers,NSDictionarys, and accessing arrays with square brackets: