在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
let optionMenuController = UIAlertController(title: nil, message: "选择图片", preferredStyle: .actionSheet) let libraryAction = UIAlertAction(title: "从相册选择", style: .default, handler: { (alert: UIAlertAction!) -> Void in }) let cameraAction = UIAlertAction(title: "拍照", style: .default, handler: { (alert: UIAlertAction!) -> Void in }) let cancelAction = UIAlertAction(title: "取消", style: .default, handler: { (alert: UIAlertAction!) -> Void in }) optionMenuController.addAction(libraryAction) optionMenuController.addAction(cameraAction) optionMenuController.addAction(cancelAction) self.present(optionMenuController, animated: true, completion: nil)
|
请发表评论