摘要: 需要的头文件为: #import <sys/sysctl.h> 阅读全文
posted @ 2016-04-01 17:31 懒懒初阳 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 1 +(BOOL)IsChinese:(NSString *)str 2 { 3 for(int i=0; i 0x4e00 && a < 0x9fff) 7 { 8 return YES; 9 } 10 11 } 12 return NO; 13 } 阅读全文
posted @ 2016-04-01 17:03 懒懒初阳 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1 UIAlertView * alt = [[UIAlertView alloc] initWithTitle:@"提示" 2 message:@"操作成功,马上返回继续体验吧" 3 delegate:self 4 cancelButtonTitle:@"留在当前" 5 otherButtonTi 阅读全文
posted @ 2016-04-01 15:15 懒懒初阳 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Dispatch Sources 现代系统通常提供异步接口,允许应用向系统提交请求,然后在系统处理请求时应用可以继续处理自己的事情。Grand Central Dispatch正是基于这个基本行为而设计,允许你提交请求,并通过block和dispatch queue报告结果。 dispatch so 阅读全文
posted @ 2016-04-01 14:25 懒懒初阳 阅读(254) 评论(0) 推荐(0) 编辑