摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSString *name = @"王重阳"; NSInteger age = 56; NSString *job = @"道长"; ... 阅读全文
posted @ 2016-01-09 10:46 专注博客园三十年 阅读(623) 评论(0) 推荐(0) 编辑
摘要: #import #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])int main(int argc, const char * argv[... 阅读全文
posted @ 2016-01-08 17:49 专注博客园三十年 阅读(379) 评论(0) 推荐(0) 编辑
摘要: NSMutableArray*name=[NSArray arrayWithArray:newarray]; 阅读全文
posted @ 2016-01-08 16:02 专注博客园三十年 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool {NSDictionary *dic1=@{@"name":@"小阳", @"class":@"IOS8", @"age":@"... 阅读全文
posted @ 2016-01-08 14:20 专注博客园三十年 阅读(309) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //数组和字典结合使用 NSDictionary*dic=@{@"name":@"zhan san",@"class":@"ios5",@"age":@... 阅读全文
posted @ 2016-01-08 11:14 专注博客园三十年 阅读(563) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //数组和字典结合使用 NSDictionary*dic=@{@"name":@"zhan san",@"class":@"ios5",@"age":@... 阅读全文
posted @ 2016-01-08 11:08 专注博客园三十年 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: #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 专注博客园三十年 阅读(207) 评论(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 专注博客园三十年 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //可变数组继承不可变数组 //1.创建 设定元素个数进行创建 NSMutableArray *mutArr=[NSMutableArray ... 阅读全文
posted @ 2016-01-07 11:23 专注博客园三十年 阅读(2190) 评论(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 专注博客园三十年 阅读(374) 评论(0) 推荐(0) 编辑