1.创建一个ActionSheet类
2.实现ActionSheet的delegate
@IBAction func shareClick(sender: UIButton) {
let actionSheet1 = UIActionSheet(title: nil, delegate: self, cancelButtonTitle: "取消分享", destructiveButtonTitle: "分享到新浪微博")
actionSheet1.showInView(self.view)
}
func actionSheet(actionSheet: UIActionSheet, clickedButtonAtIndex buttonIndex: Int) {
lable1.text = actionSheet.buttonTitleAtIndex(buttonIndex)
}