let alertVC : UIAlertController = UIAlertController.init(title: "添加照片", message: "", preferredStyle: .actionSheet)
let cleanAction = UIAlertAction(title: "取消", style: UIAlertActionStyle.cancel,handler:nil)
let photoAction = UIAlertAction(title: "拍照", style: UIAlertActionStyle.default){ (action:UIAlertAction)in
//填写需要的响应方法
}
let choseAction = UIAlertAction(title: "从手机相册选择", style: UIAlertActionStyle.default){ (action:UIAlertAction)in
//填写需要的响应方法
}
alertVC.addAction(cleanAction)
alertVC.addAction(photoAction)
alertVC.addAction(choseAction)
self.present(alertVC, animated: true, completion: nil)