代码之家  ›  专栏  ›  技术社区  ›  Rajni Johar Raswant

未使用UIViewController隐藏选项卡栏

  •  4
  • Rajni Johar Raswant  · 技术社区  · 8 年前

    我使用选项卡栏添加了一个UIViewController作为PresentViewController,然后视图看起来像: enter image description here

    enter image description here

    自己presentViewController(响应选择器,动画:true, 完成:无)

    2 回复  |  直到 8 年前
        1
  •  3
  •   nitish005 Rajni Johar Raswant    7 年前

    我找到了解决办法。

    let responseSelector =
     ResponseSelectorViewController(responseId:currentResponse.title,
     delegate:self)
             responseSelector.modalPresentationStyle = .OverCurrentContext
             self.presentViewController(responseSelector, animated: true, completion: nil)
    

    我已经改变了这一行代码。

     responseSelector.modalPresentationStyle = .OverFullScreen
    
        2
  •  1
  •   Greenonline    7 年前

    ViewWillAppear()

    self.tabBarController!.tabBar.isHidden = true