关于UITabar的一些自定义方法
2015-10-16 10:16
459 查看
如果使用的自带控制器的就是用下面这个方法调整高度
- (void)viewWillLayoutSubviews{
[super viewWillLayoutSubviews];
CGRect tabFrame = self.tabBar.frame;
tabFrame.size.height = 55;
tabFrame.origin.y = self.view.frame.size.height - 55;
self.tabBar.frame = tabFrame;
}
- (void)viewWillLayoutSubviews{
[super viewWillLayoutSubviews];
CGRect tabFrame = self.tabBar.frame;
tabFrame.size.height = 55;
tabFrame.origin.y = self.view.frame.size.height - 55;
self.tabBar.frame = tabFrame;
}
相关文章推荐
- Android第三方模拟器使用:bluestracks和Genymotion
- UIWindow UIScreen UIViewController UIView之间的关系
- iOS 笔记八:Core Animation、Dynamic Animation、 UIDynamicBehavoir
- IOS学习动画一之 UIKit动画
- iOS UIView 添加点击事件
- UIDatePick,UIPick
- requireJS参数传递
- UIImage 和 NSString 之间的互转
- IOS之UITabBarController
- IOS does not contain bitcode. You must rebuild it with
- requirejs解决js跨域问题
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- 根据indexPath拿到UITableView的cell
- JS生成36为UUID
- requirejs学习笔记
- IOS-UITextField-全解
- UITableView小知识点总结
- POJ 2081 Recaman's Sequence(水的问题)
- iOS开发UI篇—ios应用数据存储方式(偏好设置)
- ValuesQuerySet对象 转换成json