Advertisement
Guest User

Untitled

a guest
May 28th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate {
  2.  
  3. func handleProfileImage() {
  4. ...
  5. imagePickerController.mediaTypes = [kUTTypeImage as String]
  6. imagePickerController.delegate = self
  7. present(imagePickerController, animated: true, completion: nil)
  8. }
  9.  
  10. func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
  11. print("Finish picking image", info)
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement