ios 数组倒序和数组转字符串

  NSMutableArray *array = [NSMutableArray arrayWithObjects:@"1",@"2",@"3",nil];
    NSArray* reversedArray = [[array reverseObjectEnumerator] allObjects];
    NSLog(@"%@",reversedArray);
    
    NSArray *array1 = [NSArray arrayWithObjects:@"one",@"two",@"three", nil];
    NSString *string = [array1 componentsJoinedByString:@","];
    NSLog(@"string:%@",string);

 

posted @ 2015-10-19 16:41  菜鸟程序猿  阅读(1730)  评论(0编辑  收藏  举报