1惋鸥、數(shù)組轉(zhuǎn)字符串:
NSString * str= [stringArrcomponentsJoinedByString:@";"];
2敛苇、字符串轉(zhuǎn)數(shù)組:
NSArray* array = [self.appendStringcomponentsSeparatedByString:@";"];
NSArray*arr1 = [[NSArrayalloc]initWithObjects:@"0",@"5",nil];
NSData*data = [NSKeyedArchiverarchivedDataWithRootObject:arr1];
NSArray*arr2 = [NSKeyedUnarchiverunarchiveObjectWithData:data];
NSLog(@"->%@",[arr1objectAtIndex:1]);
NSLog(@"->%@",[arr2objectAtIndex:1]);