摘要: #importIn the C language, the#includepre-compile directive always causes a file's contents to be inserted into the source at that point. Objective-C has the equivalent#importdirective except each file is included only once per compilation unit, obviating(去除) the need forinclude guards.for exampl 阅读全文
posted @ 2012-05-28 23:41 worldworld 阅读(2539) 评论(0) 推荐(0) 编辑
摘要: 1、首先缓存图片,等待后面利用本地url来取dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ TTURLCache *cache = [TTURLCache sharedCache]; for (NSDictionary *item in results) { if (![cache hasDataForKey:[item objectForKey:@"thumb_url"] expires:3000]) { [cache stor... 阅读全文
posted @ 2012-05-28 19:41 worldworld 阅读(326) 评论(0) 推荐(0) 编辑
摘要: http://www.gocalf.com/blog/iphone-dev-hide-status-bar.html1、在info.plist里面 Status bar is initially hidden 设置为 YES2、在appDelagate里面 设置[application setStatusBarHidden:NOwithAnimation:UIStatusBarAnimationFade]; 即可。App启动时就隐藏状态栏用了上面的方法之后,App在运行过程中,状态栏确实被隐藏起来了,但是我发现在App启动的那个瞬间,还是可以看到状态栏的,然后一闪即过。虽然时间很短暂,看着还是 阅读全文
posted @ 2012-05-28 11:18 worldworld 阅读(2139) 评论(0) 推荐(0) 编辑