1、NSArray轉換成NSMutablearray
NSString *array = @[@“”,@“”,@“”,@“”];
NSMutaleArray *muarray = [NSMutablearray arrayWithArray:array];
2、NSDictonary 轉換成 NSMutableDictionary
NSDictionarry *dic = @{@“one”:@“1”,@“two”:@“12”}
NSMutableDictionary *mDic = [NSMutableDictionarry dictionarryWithDictionarry:dic];
3、NSset 轉成NSMutableSet
NSSet *set = [[NSSet alloc] initWitheObjects:@“a”,@“d”,nil];
NSMutableSet *muSet = [NSMutableSet setWithSet:set];
4、NSArray 轉成NSSet
NSMutableSet*muSet2 = [NSMutableSet setWithArray:array];
5、NSDitionary 轉成NSArray
NSArray *allkeys = [dic allkeys];
NSArray *allValues = [dic allValues];
6、字符串转成数组
NSString *str = @“awww”;
NSArray *strArray = [str componetsSeparateByString:@“.”];