NSString+NSMutableString+NSValue+NSAraay用法汇总
2010-09-16 23:54:00 来源:WEB开发网核心提示:[newArray release];//Deep copy//NSMutableArray *newArray = [[NSMutableArray alloc] init];NSArray *oldArray = [NSArray arrayWithObjects:@"a",@"b&q
[newArray release];
//Deep copy
//NSMutableArray *newArray = [[NSMutableArray alloc] init];
NSArray *oldArray = [NSArray arrayWithObjects:
@"a",@"b",@"c",@"d",@"e",@"f",@"g",@"h",nil];
NSLog(@"oldArray:%@",oldArray);
newArray = (NSMutableArray*)CFPropertyListCreateDeepCopy(kCFAllocatorDefault, (CFPropertyListRef)oldArray, kCFPropertyListMutableContainers);
NSLog(@"newArray:%@", newArray);
[newArray release];
//Copy and sort
//NSMutableArray *newArray = [[NSMutableArray alloc] init];
NSArray *oldArray = [NSArray arrayWithObjects:
Tags:NSString NSMutableString NSValue
编辑录入:coldstar [复制链接] [打 印]更多精彩
赞助商链接