在iOS SDK里是全部对象的基类
实现了全部的內省introspection
方法code
- (NSString *)description
是一个很重要的方法,它重写了 NSLog()
里的%@
例如:component
若是重写了NSLog(@“array contents are %@”, myArray);orm
description
, %@
实际执行的是[myArray description]
方法- (id)copy;
- (id)mutableCopy;
对象
- (NSUInteger)count;
- (id)objectAtIndex:(NSUInteger)index;
- (id)lastObject;
- (id)firstObject;
- (NSArray *)sortedArrayUsingSelector:(SEL)aSelector;
ip
- (void)makeObjectsPerformSelector:(SEL)aSelector withObject:(id)selectorArgument;
it
- (NSString *)componentsJoinedByString:(NSString *)separator;
io