美文网首页
iOS navigationBar与tabBar的translu

iOS navigationBar与tabBar的translu

作者: 豪冷 | 来源:发表于2019-05-29 09:48 被阅读0次

    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


    相关文章

      网友评论

          本文标题:iOS navigationBar与tabBar的translu

          本文链接:https://www.haomeiwen.com/subject/dthetctx.html