摘要:
#import 2 3 int main(int argc, const char * argv[]) { 4 @autoreleasepool { 5 //数组内元素排序 6 NSArray *arr1=@[@"mon",@"tue",@"wed"... 阅读全文
posted @ 2016-01-07 21:34
专注博客园三十年
阅读(211)
评论(0)
推荐(0)
摘要:
int main(int argc, const char * argv[]) { @autoreleasepool { NSString *str=@"180-234-140-22"; NSString *newStr=[str stringByReplacingOccurrence... 阅读全文
posted @ 2016-01-07 13:07
专注博客园三十年
阅读(245)
评论(0)
推荐(0)
摘要:
#import int main(int argc, const char * argv[]) { @autoreleasepool { //可变数组继承不可变数组 //1.创建 设定元素个数进行创建 NSMutableArray *mutArr=[NSMutableArray ... 阅读全文
posted @ 2016-01-07 11:23
专注博客园三十年
阅读(2203)
评论(0)
推荐(0)
摘要:
#import int main(int argc, const char * argv[]) { @autoreleasepool { //创建数组 //1.快速创建数组@[] NSArray*week=@[@"month",@"tue",@" wed",@"fir"];for(i... 阅读全文
posted @ 2016-01-07 11:20
专注博客园三十年
阅读(376)
评论(0)
推荐(0)
摘要:
#import int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableString *mustr1=[[NSMutableString alloc]init]; NSMutableString *mu... 阅读全文
posted @ 2016-01-07 09:54
专注博客园三十年
阅读(587)
评论(0)
推荐(0)
摘要:
NSMutableString*string=[NSMutableStringstringWithFormat:@"%@",@"123-456-789-000"];//查找“-”NSRangerg=[stringrangeOfString:@"-"]; //找到指定的你要删除的“-”然后在下面进行删... 阅读全文
posted @ 2016-01-07 09:47
专注博客园三十年
阅读(857)
评论(0)
推荐(0)
摘要:
#import int main(int argc, const char * argv[]) { @autoreleasepool { NSString*str=@"123-456-789-000"; NSString*str1=[str stringByReplacingOccurre... 阅读全文
posted @ 2016-01-07 09:15
专注博客园三十年
阅读(280)
评论(0)
推荐(0)
摘要:
//整型转换字符串 进行封装int a=100;NSNumber*intNumberA=[NSNumber NumberWithInit:a];//字符串转换成整型NSString*str1=@"158";NSInterger num1=[str1 integerValue]; 阅读全文
posted @ 2016-01-07 09:00
专注博客园三十年
阅读(481)
评论(0)
推荐(0)
浙公网安备 33010602011771号