【发布时间】:2018-01-31 19:58:24
【问题描述】:
我无法从 UINavigationController 堆栈视图中呈现 UIViewController 的子类 CustomAlert。为了更具描述性,我有一个 UITabBarController 包装了一个 UINavigationController。 navController,有一个 rootView 和另一个推送到堆栈视图,leafView 类型为UITableViewController。在leafView 中,我想展示一个UIViewController 类型的alertView,它大部分是透明的,内部有一个不透明的视图。问题是在呈现时,这个alertView的背景不再是透明的,而是黑色的,并且在dismiss时它并没有返回到叶子控制器,而是返回到rootView。我认为我没有从正确的角度呈现我的警报。我应该如何解决这个问题?
searchController.present(friendAlert, animated: false, completion: nil)
【问题讨论】:
标签: swift uitableview uiviewcontroller uitabbarcontroller uialertview