摘要:
不可变的 NSArray *arr= @[@"1",@"2",@"3"]; arr =[arr sortedArrayUsingSelector:@selector(compare:)]; NSLog(@"%@",arr); arr= [arr sortedArra... 阅读全文
posted @ 2014-12-24 22:43
M了个WX
阅读(226)
评论(0)
推荐(0)
摘要:
// NSArray *arr = @[@1,@2,@3,@4]; 这个不可变数组不行 //1.可变数组 NSMutableArray *arr = [NSMutableArray arrayWithObjects:@"1",@"2",@"3", nil]; //2.不可变数... 阅读全文
posted @ 2014-12-24 22:41
M了个WX
阅读(141)
评论(0)
推荐(0)
摘要:
NSMutableString *str = [NSMutableString stringWithString:@"www-it-heima-com"]; NSMutableString *str1 =[str stringByReplacingOccurrencesOfString:@"-... 阅读全文
posted @ 2014-12-24 22:40
M了个WX
阅读(108)
评论(0)
推荐(0)
摘要:
数组遍历的四种用法例:NSArray *array = @[@1,@2,@3,@4];第一种方法--for循环for(int i=0;i<array.count;i++){ NSLog( @"%@",array[i] );}第二种方法--for循环增强版//常用的是for(NSString *st... 阅读全文
posted @ 2014-12-24 16:50
M了个WX
阅读(1561)
评论(0)
推荐(0)
摘要:
随记一些NSString的一些方法 (自己没事的可以输入方法的首字母,从a一直查到z,就当复习了)NSMutableString *str = [NSMutableString stringWithString:@"www-it-heima-com"]; NSMutableStrin... 阅读全文
posted @ 2014-12-24 16:11
M了个WX
阅读(456)
评论(0)
推荐(0)

浙公网安备 33010602011771号