Ios 如何在Swift中打开搜索表视图
事先谢谢你的帮助 我想打开这个类型的屏幕 当用户点击这样的国家代码时Ios 如何在Swift中打开搜索表视图,ios,swift,uisearchbar,uisearchcontroller,country-codes,Ios,Swift,Uisearchbar,Uisearchcontroller,Country Codes,事先谢谢你的帮助 我想打开这个类型的屏幕 当用户点击这样的国家代码时 我是iOS开发的新手。我不知道怎么做,请帮帮我。我在我的一个应用程序中做到了这一点 如果您正在使用序列图像板中的segue显示国家/地区选择ViewController,请设置下图中的segue设置,以显示具有透明背景的视图 如果以编程方式显示视图控制器,请将modalPresentationStyle设置为OverCurrentContext 此处代码: let modalView = self.sto
我是iOS开发的新手。我不知道怎么做,请帮帮我。我在我的一个应用程序中做到了这一点
- 如果您正在使用序列图像板中的segue显示国家/地区选择ViewController,请设置下图中的
设置,以显示具有透明背景的视图segue
- 如果以编程方式显示视图控制器,请将
设置为modalPresentationStyle
OverCurrentContext
let modalView = self.storyboard?.instantiateViewControllerWithIdentifier("CountrySelectionViewID")
modalView?.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext
self.presentViewController(modalView, animated: true, completion: nil)
- 将
与UIViewController
一起用作子视图,以便您可以设置tableview的边距,并将背景色设置为黑色,alpha值约为0.7UITableView
- 为您的国家/地区选择视图执行委派功能,以了解选择的国家/地区