[英]How to open the search tableView in Swift
我是在我的一个应用中完成的。
segue
设置segue
设置以使用透明背景显示视图 modalPresentationStyle
设置为OverCurrentContext
此处代码:
let modalView = self.storyboard?.instantiateViewControllerWithIdentifier("CountrySelectionViewID")
modalView?.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext
self.presentViewController(modalView, animated: true, completion: nil)
结合使用UIViewController
和UITableView
作为子视图,以便可以设置表视图的边距,并将背景颜色设置为黑色,alpha值约为0.7
为您的国家选择视图实现委托功能,以了解选择哪个国家
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.