开发者社区> 问答> 正文

UITabBar 添加发布按钮

screenshot
如何实现像Instagram这样的中间的tab是一个发照片的按钮的,是直接加按钮进行覆盖么

展开
收起
a123456678 2016-07-28 14:50:31 2019 0
1 条回答
写回答
取消 提交回答
  • func tabBarController(tabBarController: UITabBarController, shouldSelectViewController viewController: UIViewController) -> Bool {
    
        if find(tabBarController.viewControllers as! Array, viewController) == 2 {
            performSegue.....
            return false
        }
        return true
    }

    func tabBarController(tabBarController: UITabBarController, shouldSelectViewController viewController: UIViewController) -> Bool {
    
        if find(tabBarController.viewControllers as! Array, viewController) == 2 {
            performSegue.....
            return false
        }
        return true
    }
    2019-07-17 20:01:24
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载