摘要:
#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
阅读(132)
评论(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
阅读(157)
评论(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
阅读(958)
评论(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
阅读(477)
评论(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
阅读(419)
评论(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
阅读(197)
评论(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
阅读(226)
评论(0)
推荐(0)
摘要:
/* 简述:Cocoa框架中的NSPredicate用于查询,原理和用法都类似于SQL中的where,作用相当于数据库的过滤取。 定义(最常用到的方法): NSPredicate这个类有点类似于数据库中的查询,是用于在一批内容中查询符合条件的子集,中文翻译成“谓词”... 阅读全文
posted @ 2016-01-11 12:03
aiXiaoMo
阅读(161)
评论(0)
推荐(0)
摘要:
int main(int argc, const char * argv[]) { @autoreleasepool { /* 第1题 请将如下数据存储成字典,并将字典内容以字符串形式输出,输出:"XXX,年龄XXX岁,科目XXX,分数XXX"(将XXX替换为相应的数据)。 */ ... 阅读全文
posted @ 2016-01-11 11:58
aiXiaoMo
阅读(243)
评论(0)
推荐(0)
摘要:
int main(int argc, const char * argv[]) { @autoreleasepool { //1、创建可变set集合 NSMutableSet *set1=[NSMutableSet set]; NSMutableSet *set2=[NSMuta... 阅读全文
posted @ 2016-01-11 11:38
aiXiaoMo
阅读(86)
评论(0)
推荐(0)
摘要:
int main(int argc, const char * argv[]) { @autoreleasepool { //1、类方法创建NSSet集合和直接赋值法床架NSSet集合 NSSet *set =[NSSet set]; NSSet *set1=[NSSet set... 阅读全文
posted @ 2016-01-11 11:36
aiXiaoMo
阅读(133)
评论(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 08:42
aiXiaoMo
阅读(171)
评论(0)
推荐(0)