How to make UIImagePickerController for camera and photo library at the same time in swift
问题 I use UIImagePickerController to take a photo by camera of iPhone. I want to show both "take a photo" and "choose a photo". My code imagePicker = UIImagePickerController() imagePicker.delegate = self imagePicker.sourceType = .camera //imagePicker.sourceType = .PhotoLibrary presentViewController(imagePicker, animated: true, completion: nil) I tried to use imagePicker.sourceType = .Camera and imagePicker.sourceType = .PhotoLibrary together to do this, but it doesn't work... Thank you 回答1: