Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate {
- func handleProfileImage() {
- ...
- imagePickerController.mediaTypes = [kUTTypeImage as String]
- imagePickerController.delegate = self
- present(imagePickerController, animated: true, completion: nil)
- }
- func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
- print("Finish picking image", info)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement