随笔分类 -  Layout

关于Layout的一些知识积累
摘要:在autolayout中加入每个view的weight,这样相互之间的关系就更明确,比如: double iconViewWeight = 1; double titleLabelWeight = 12; double timeLabelWeight = 3; doubl... 阅读全文

posted @ 2014-12-18 21:36 SCaptain 阅读(310) 评论(0) 推荐(0)

摘要:UIView *topLayoutGuide = self.topLayoutGuide;NSDictionary *viewsDictionary = NSDictionaryOfVariableBindings(selectBuuton, itemTableView, itemCollectio... 阅读全文

posted @ 2014-11-05 21:47 SCaptain 阅读(310) 评论(0) 推荐(0)

摘要:1、调用[self setNeedsStatusBarAppearanceUpdate];2、重载以下函数- (BOOL)prefersStatusBarHidden{ return _hideStatusBar;} 阅读全文

posted @ 2014-11-05 14:22 SCaptain 阅读(156) 评论(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 阅读(167) 评论(0) 推荐(0)

摘要: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 阅读(650) 评论(0) 推荐(0)

摘要:setBackgroundImage 会根据button的大小平铺setImage不会平铺 阅读全文

posted @ 2014-10-16 19:16 SCaptain 阅读(203) 评论(0) 推荐(0)

摘要:系统的NavigationBar局限太大,而且现在我要做的navigationBar需要四个按钮,一个Label,一个ImageView,所以不能用系统默认的。 刚刚咨询了一个高手,她的建议是,将系统的NavigationBar隐去,但是还是用navigationCntroller去导航,然后... 阅读全文

posted @ 2014-10-10 15:16 SCaptain 阅读(318) 评论(0) 推荐(0)

摘要:Layout SupportThis protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a... 阅读全文

posted @ 2014-09-26 11:05 SCaptain 阅读(307) 评论(0) 推荐(0)

导航