ksnowlv

回顾过去,总结以往;立足现在,铭记当下;技术为主,笔记而已.

Swift-导航控制器

| Comments

导航控制器作为iOS工程常用的容器类,在定制的时候, 需要考虑几个关键点。

1.状态栏风格。

2.导航栏。

3. 右侧滑关闭手势与页面UITableView滑动手势冲突。

4. push/present/pop动画,某些场景下需要需要禁止。

5.与UITabBarController配合使用。

1
2
3
if self.viewControllers.count > 0 {
        viewController.hidesBottomBarWhenPushed = true
    }

源代码见demo

Comments

comments powered by Disqus
Included file 'custom/after_footer.html' not found in _includes directory