Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //// Vladimir Zhelnov - neatek.pw - Web/iOS dev
- let alertController = UIAlertController(title: "Откуда взять фотографию", message: "", preferredStyle: .actionSheet)
- let oneAction = UIAlertAction(title: "Камера", style: .default) { (_) in
- // action
- }
- let twoAction = UIAlertAction(title: "Галерея", style: .default) { (_) in
- // action
- }
- let cancelAction = UIAlertAction(title: "Отмена", style: .cancel)
- alertController.addAction(oneAction)
- alertController.addAction(twoAction)
- alertController.addAction(cancelAction)
- present(alertController, animated: true, completion: nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement