草庐IT

alrController

全部标签

ios - 如何在 iOS 的 UIAlertcontroller 中显示 UITableview?

我是swift编码的新手,所以我想知道有什么方法可以使用swift在alertcontroller中显示tableview。 最佳答案 varalrController=UIAlertController(title:"\n\n\n\n\n\n",message:nil,preferredStyle:UIAlertControllerStyle.ActionSheet)letmargin:CGFloat=8.0letrect=CGRectMake(margin,margin,alrController.view.bounds.siz