swift - 迷你莫代尔风格的向导,工作但视觉效果看起来有线

时间:2016-07-04 20:25:50

标签: swift swift2

我有一个Storyboard项目,我有我的主UINavigationController,在特定的视图控制器中,我提出了这种风格的向导模式。触摸" +"时显示模态的代码导航按钮:

enter image description here

let storyboard = UIStoryboard(name: "Main", bundle: nil)
    let nc = storyboard.instantiateViewControllerWithIdentifier("procedurenav") as! UINavigationController
    nc.modalPresentationStyle = .OverCurrentContext
    nc.navigationBarHidden = true
    self.presentViewController(nc, animated: true, completion: nil)

结果如下:

enter image description here

模态是一个UINavigationController,它将处理我的"向导"风格。

这就是它在我的故事板中的样子(我在控制器的中心添加了一个视图,该区域将显示信息)。

enter image description here

当我按下下一个向导UIViewController时,问题恰好发生了,因为你看到新视图如何推动所有屏幕,我只想制作推动中心区域的视觉效果,这将成为我的向导。

以下是问题的gif动画的链接(在新标签中复制并粘贴网址)

http://g.recordit.co/d4AAAnFsZt.gif

这是在我的"向导":

中推送视图的代码
let storyboard = UIStoryboard(name: "Main", bundle: nil)
        let vc = storyboard.instantiateViewControllerWithIdentifier("searchAuthorization") as! UIViewController
        self.navigationController?.pushViewController(vc, animated:true)
  

有任何线索吗?

0 个答案:

没有答案