ios
oc小菜
问问
展开
-
GCD的简单使用
dispatch_async(dispatch_get_global_queue(0, 0), ^{ NSLog(@"后台执行"); }); dispatch_async(dispatch_get_main_queue(), ^{ NSLog(@"主线程执行"); }); static disp原创 2015-06-25 14:49:58 · 423 阅读 · 0 评论 -
ios 版本更新
NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; NSString *currentVersion = [infoDict objectForKey:@"CFBundleVersion"]; double doubleCurrentVersion = [currentVersion doubl原创 2015-08-03 16:26:50 · 444 阅读 · 0 评论