Advertisement
neatekFb

Create ActionSheet in swift (Bottom menu) // swift 3

Dec 2nd, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.69 KB | None | 0 0
  1. //// Vladimir Zhelnov - neatek.pw - Web/iOS dev
  2.         let alertController = UIAlertController(title: "Откуда взять фотографию", message: "", preferredStyle: .actionSheet)
  3.         let oneAction = UIAlertAction(title: "Камера", style: .default) { (_) in
  4. // action
  5.         }
  6.         let twoAction = UIAlertAction(title: "Галерея", style: .default) { (_) in
  7. // action
  8.         }
  9.         let cancelAction = UIAlertAction(title: "Отмена", style: .cancel)
  10.         alertController.addAction(oneAction)
  11.         alertController.addAction(twoAction)
  12.         alertController.addAction(cancelAction)
  13.         present(alertController, animated: true, completion: nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement