草庐IT

shareAlert

全部标签

ios - 从 UITableViewCell 上的按钮显示 UIAlertController

这是我在UITableViewCell中的按钮内编写的代码。varshareAlert=UIAlertController(title:"PostAlert",message:"YourPosthasbeenSharedwithyourFriends",preferredStyle:UIAlertControllerStyle.Alert)varOk=UIAlertAction(title:"Ok",style:UIAlertActionStyle.Default,handler:nil)shareAlert.addAction(Ok)shareAlert.presentViewCon