摘要: //创建空数组 NSArray *arr1=[[NSArray alloc]init]; NSArray *arr2=[NSArray array]; //快速创建数组 NSArray *arr3=@[@"mon",@"tue",@"wed",@"thu",@"fri",@"... 阅读全文
posted @ 2016-01-12 09:11 aiXiaoMo 阅读(151) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableString *mustr1=[[NSMutableString alloc]init]; NSMutableString *... 阅读全文
posted @ 2016-01-12 09:03 aiXiaoMo 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //1、快速创建数组 @[] NSArray *week=@[@"mon",@"tue",@"wed",@"thu",@"fri",@"sat",@... 阅读全文
posted @ 2016-01-11 17:51 aiXiaoMo 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);#import int main(int argc, const char... 阅读全文
posted @ 2016-01-11 17:49 aiXiaoMo 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);#import int main(int argc, const char... 阅读全文
posted @ 2016-01-11 17:47 aiXiaoMo 阅读(939) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);#import static NSString * const kName... 阅读全文
posted @ 2016-01-11 17:04 aiXiaoMo 阅读(458) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //将字典的key从Z->A排序,按排序后的key的顺序,输出value,将value按字符串输出 NSDictionary *... 阅读全文
posted @ 2016-01-11 16:48 aiXiaoMo 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);#import int main(int argc, const char... 阅读全文
posted @ 2016-01-11 16:44 aiXiaoMo 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);#import #import int main(int argc, co... 阅读全文
posted @ 2016-01-11 16:27 aiXiaoMo 阅读(218) 评论(0) 推荐(0) 编辑
摘要: /* 简述:Cocoa框架中的NSPredicate用于查询,原理和用法都类似于SQL中的where,作用相当于数据库的过滤取。 定义(最常用到的方法): NSPredicate这个类有点类似于数据库中的查询,是用于在一批内容中查询符合条件的子集,中文翻译成“谓词”... 阅读全文
posted @ 2016-01-11 12:03 aiXiaoMo 阅读(147) 评论(0) 推荐(0) 编辑