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