看到
navigationController.viewControllers = @[ViewController];
@[] 初始化不可变数组
@{} 初始化不可变字典
例如
static NSDictionary *dic = nil;
dispatch_once(&onceToken, ^{
dic = [@{
@"1":@{@"name":@"11",@"img":@"img1.png"},
@"2":@{@"name":@"22",@"img":@"img2.png"},
@"3":@{@"name":@"33",@"img":@"img3.png"},
@"4":@{@"name":@"44",@"img":@"img4.png"}
} retain];
});