2014年11月5日

摘要: 1、调用[self setNeedsStatusBarAppearanceUpdate];2、重载以下函数- (BOOL)prefersStatusBarHidden{ return _hideStatusBar;} 阅读全文
posted @ 2014-11-05 14:22 SCaptain 阅读(142) 评论(0) 推荐(0) 编辑
摘要: This is a very important change in iOS 7: the status bar is no longer a separate bar. It’s now something that simply gets drawn on top of your view co... 阅读全文
posted @ 2014-11-05 13:47 SCaptain 阅读(159) 评论(0) 推荐(0) 编辑

2014年11月3日

摘要: Automatic Reference Counting (ARC) 阅读全文
posted @ 2014-11-03 15:05 SCaptain 阅读(113) 评论(0) 推荐(0) 编辑

2014年11月2日

摘要: AutoLayout思想Design-By-IntentYou just describe what you want and let Auto Layout figure out how to deliver it.AutoLayout公式A = B*m + c代码的方式添加Constraints... 阅读全文
posted @ 2014-11-02 19:15 SCaptain 阅读(628) 评论(0) 推荐(0) 编辑

2014年10月30日

摘要: sudo vi /etc/paths来编辑 paths,将环境变量添加到 paths 中。vim 是一个编辑器,另外还有几个,如:Pico,Emacs。 阅读全文
posted @ 2014-10-30 12:50 SCaptain 阅读(103) 评论(0) 推荐(0) 编辑

2014年10月27日

摘要: CocoaPods安装和使用教程Code4App 原创文章。转载请注明出处:http://code4app.com/article/cocoapods-install-usage目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods... 阅读全文
posted @ 2014-10-27 16:12 SCaptain 阅读(176) 评论(0) 推荐(0) 编辑

2014年10月20日

摘要: Try this way....As per Apple Document, ImagePicker Controller never Rotate in Landscape mode. You have to use in Potrait Mode only.For disable Landsca... 阅读全文
posted @ 2014-10-20 13:25 SCaptain 阅读(317) 评论(0) 推荐(0) 编辑

2014年10月16日

摘要: setBackgroundImage 会根据button的大小平铺setImage不会平铺 阅读全文
posted @ 2014-10-16 19:16 SCaptain 阅读(196) 评论(0) 推荐(0) 编辑

2014年10月14日

摘要: UITableViewis a subclass ofUIScrollView, andUITableViewDelegateconforms toUIScrollViewDelegate. So the delegate you attach to the table view will get ... 阅读全文
posted @ 2014-10-14 11:01 SCaptain 阅读(647) 评论(0) 推荐(0) 编辑

2014年10月10日

摘要: 系统的NavigationBar局限太大,而且现在我要做的navigationBar需要四个按钮,一个Label,一个ImageView,所以不能用系统默认的。 刚刚咨询了一个高手,她的建议是,将系统的NavigationBar隐去,但是还是用navigationCntroller去导航,然后... 阅读全文
posted @ 2014-10-10 15:16 SCaptain 阅读(300) 评论(0) 推荐(0) 编辑

导航