摘要: 1 //如果外部的变量用了__block关键字,就可以在block内部修改这个变量的值。2 //block可访问外面定义的变量3 __block int i = 10;4 int (^Num)(int, int)= ^(int a, int b){5 i = 20;6 NSLog(@"i=%i", i);7 return a + b;8 }; 阅读全文
posted @ 2013-12-11 21:13 wangzhenxiang 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 //如何获取已经安装到苹果手机上的App信息?2 Is it possible to get the information (app icon, app name, app location) about all apps that have been installed on iPhone/iPod?3 //解答4 URL:stackoverflow网5 http://stackoverflow.com/questions/3878197/is-it-possible-to-get-information-about-all-apps-installed-on-iphone/38782 阅读全文
posted @ 2013-12-11 17:47 wangzhenxiang 阅读(330) 评论(0) 推荐(0) 编辑