Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次の文脈で@[]に出くわしました
self.searches = [@[] mutableCopy];
それは何ですか?
self.searches = [[NSArray array] mutableCopy];
配列リテラルです。言い換えれば[NSArray arrayWithObjects:nil]、短い形式で。このようにオブジェクトを追加できます
[NSArray arrayWithObjects:nil]
NSArray *array = @[@"one", @"two"];