Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.28 KB | None | 0 0
  1. let imagePicker = UIImagePickerController()
  2.  
  3. // ....
  4.  
  5. @IBAction func loadImageButtonTapped(sender: UIButton) {
  6.     imagePicker.allowsEditing = false
  7.     imagePicker.sourceType = .PhotoLibrary
  8.        
  9.     presentViewController(imagePicker, animated: true, completion: nil)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement