2016年1月11日
摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])#import int main(int argc, const char * argv[... 阅读全文
posted @ 2016-01-11 16:38 bobohahaha 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])http://www.cnblogs.com/wangyang1987 阅读全文
posted @ 2016-01-11 13:53 bobohahaha 阅读(138) 评论(0) 推荐(0) 编辑
摘要: //// main.m// nsmutableset//// Created by 博博 on 16/1/11.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n",... 阅读全文
posted @ 2016-01-11 13:47 bobohahaha 阅读(142) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 数组//// Created by 博博 on 16/1/7.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n", [[NSString... 阅读全文
posted @ 2016-01-11 13:43 bobohahaha 阅读(184) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 截取//// Created by 博博 on 16/1/6.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n", [[NSString... 阅读全文
posted @ 2016-01-11 13:42 bobohahaha 阅读(202) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 字典排序//// Created by 博博 on 16/1/8.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n", [[NSStri... 阅读全文
posted @ 2016-01-11 13:28 bobohahaha 阅读(119) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 数组字典结合//// Created by 博博 on 16/1/8.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n", [[NSSt... 阅读全文
posted @ 2016-01-11 13:28 bobohahaha 阅读(116) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 可变字典//// Created by 博博 on 16/1/8.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n", [[NSStri... 阅读全文
posted @ 2016-01-11 13:27 bobohahaha 阅读(113) 评论(0) 推荐(0) 编辑
摘要: //字典:NSDictionary//1.存储数据使用 和数组区别:使用键值方式。无序//2.相当于我们使用字典通过目录来查找具体字的释意//3.用key-value的形式数据,value作用用来存储数据,key用来检索数据//4.cocoa中的字典:可变/不可变//注意事项//5.key通常是字符... 阅读全文
posted @ 2016-01-11 13:26 bobohahaha 阅读(113) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 可变的字符串//// Created by 博博 on 16/1/7.// Copyright (c) 2016年 com.bb. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n", [[NSSt... 阅读全文
posted @ 2016-01-11 13:22 bobohahaha 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])#import int main(int argc, const char * argv[... 阅读全文
posted @ 2016-01-11 12:52 bobohahaha 阅读(657) 评论(0) 推荐(0) 编辑
摘要: //// main.m// aa//// Created by rcfwzx on 15/11/20.// Copyright (c) 2015年 rcfwzx. All rights reserved.//#import int main(int argc, const char * argv[]... 阅读全文
posted @ 2016-01-11 12:30 bobohahaha 阅读(181) 评论(0) 推荐(0) 编辑
摘要: OC第四讲 数组、字典、集1、取出符串“123-456-789-000”中的数字部分,组成一个新的字符串输出2、随机获得100个50-100的数字字符串,存入一个数组,最后打印输出这个数组(arc4random())3、 创建一个Student类,将学员信息存放进一个字典,将3个学员信息的字典存放到... 阅读全文
posted @ 2016-01-11 12:19 bobohahaha 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])#import int main(int argc, const char * argv[... 阅读全文
posted @ 2016-01-11 12:12 bobohahaha 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableArray *array = [NSMutableArray arrayWithObjects:@"3",@"2",@"5",nil];... 阅读全文
posted @ 2016-01-11 12:11 bobohahaha 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableArray *array = [NSMutableArray arrayWithObjects:@"3",@"2",@"5",nil];... 阅读全文
posted @ 2016-01-11 12:10 bobohahaha 阅读(123) 评论(0) 推荐(0) 编辑
摘要: NSArray *arr2=@[@"小雨",@"安安",@"小风",@"荣荣",@"张涛",@"李文荣"]; NSComparator sortblock1=^(id obj1,id obj2){ return [obj1 localizedCompare:obj2]; }; ... 阅读全文
posted @ 2016-01-11 12:04 bobohahaha 阅读(119) 评论(0) 推荐(0) 编辑