摘要: 在有的时候,我们不需要手势返回功能,那么可以在页面中添加以下代码:- (void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; // 禁用 iOS7 返回手势 if ([self.navigationCo... 阅读全文
posted @ 2014-05-19 16:22 沙影无痕 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 文字高度计算方法CGFloat fixedWidth = self.view.frame.size.width;CGSize newSize = [label sizeThatFits:CGSizeMake(fixedWidth, MAXFLOAT)];CGFloat height = newSiz... 阅读全文
posted @ 2014-05-19 10:34 沙影无痕 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 还原UINavigationController 的 UINavigationBar上的系统backBarButtonItem在页面设计过程中,有时候会用到self.navigationItem.leftBarButtonItem = othButtonItem;而实际上在这个位置是存在有一个bac... 阅读全文
posted @ 2014-05-19 09:45 沙影无痕 阅读(120) 评论(0) 推荐(0) 编辑