What does a square-bracketed index after an NSArray mean? [duplicate]
问题 This question already has answers here : What are the details of “Objective-C Literals” mentioned in the Xcode 4.4 release notes? (3 answers) Closed 5 years ago . Going through iTunes U Developing iOS 7 Apps for iPhone and iPad and in Lecture 3 slides, on page 120, there's a Quiz question that asks what the following line of code does. Frankly, I'm a bit stumped, and hoped someone could break it down. cardA.contents = @[cardB.contents,cardC.contents][[cardB match:@[cardC]] ? 1 : 0]; So, I get