摘要:在autolayout中加入每个view的weight,这样相互之间的关系就更明确,比如: double iconViewWeight = 1; double titleLabelWeight = 12; double timeLabelWeight = 3; doubl...
阅读全文
摘要:UIView *topLayoutGuide = self.topLayoutGuide;NSDictionary *viewsDictionary = NSDictionaryOfVariableBindings(selectBuuton, itemTableView, itemCollectio...
阅读全文
摘要:1、调用[self setNeedsStatusBarAppearanceUpdate];2、重载以下函数- (BOOL)prefersStatusBarHidden{ return _hideStatusBar;}
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:setBackgroundImage 会根据button的大小平铺setImage不会平铺
阅读全文
摘要:系统的NavigationBar局限太大,而且现在我要做的navigationBar需要四个按钮,一个Label,一个ImageView,所以不能用系统默认的。 刚刚咨询了一个高手,她的建议是,将系统的NavigationBar隐去,但是还是用navigationCntroller去导航,然后...
阅读全文
摘要:Layout SupportThis protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a...
阅读全文