iOS navigationBar与tabBar的translucent

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xjh093/article/details/81486569

navigationBar

translucent = YES (默认值) 时,UIViewControllerself.view 的原点是(0,0)

translucent = NO 时,UIViewControllerself.view 的原点是 (0,CGRectGetMaxY(self.navigationController.navigationBar.frame))


tabBar

translucent = YES (默认值) 时,UIViewControllerself.view 的底部会被 tabBar 遮挡

translucent = NO 时,UIViewControllerself.view 的底部不会被 tabBar 遮挡,也就是:

CGRectGetMaxY(self.view.frame) == CGRectGetMinY(self.tabBarController.tabBar.frame);

当 设置tabBarbackgroundImage,shadowImage 时,也相当于 translucent = NO


CollectionView横向排版:

https://github.com/xjh093/JHCollectionViewFlowLayout


我 的 github:https://github.com/xjh093


猜你喜欢

转载自blog.csdn.net/xjh093/article/details/81486569
今日推荐