1
edit
Changes
→Apple Development
<ul>
<li>'''''- (NSUInteger)count'''''</li>
<span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
<li>'''''- (id)objectAtIndex:(NSUInteger)index'''''</li>
<span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
<span style="color:#6600FF;">NSObject</span> *nsobject = [nsarray <span style="color:#660099;">objectAtIndex</span>:0];
<li>'''''- (id)lastObject'''''</li>
<span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>]; <span style="color:#6600FF;">NSObject</span> *nsobject = [nsarray <span style="color:#660099;">lastObject</span>]; <li>'''''- (BOOL)containsObject:0(id)that'''''</li> if ([this <span style="color:#660099;">containsObject</span>:that];) { ... } <li>'''''- (NSUInteger)indexOfObject:(id)that'''''</li>
</ul>