我在一个应用程序上工作,在这个应用程序中,我使用UIAlertController推动用户进行强制更新,在此应用程序中,我不想让用户执行任何活动,除非他从应用程序商店更新应用程序。if (needToUpdate) var alert = UIAlertController(title: "New Version Available", message", preferredStyle: UIAlertControllerStyle.Alert)
alert.addA
我的UIAlertController有我喜欢的风格,ActionSheet工作得很好,没有问题。为了防止冗长的代码墙,我删除了UIAlertAction闭包中的操作,并添加了代码:alert.addAction(UIAlertAction(title: "Move", style: .Default, han