I try to take several photos after one user clicks on the camera’s preview, so I can submit them, and the user can choose the one that was selected best or use everything in the film-strip mode. Expected user interface: “I open the camera, take a picture, and then see 5 pictures taken a second time. I don’t need to click the“ take picture ”button 5 times, one is enough to start the sequence.”
I am new to iOS and Swift, and I base my work on Quick Recipes ( https://www.safaribooksonline.com/library/view/ios-8-swift/9781491908969/ ).
Source code for taking one photo:
controller = UIImagePickerController() if let theController = controller{ theController.sourceType = .Camera theController.mediaTypes = [kUTTypeImage as NSString] theController.allowsEditing = true theController.delegate = self presentViewController(theController, animated: true, completion: nil) }
plus appropriate image processing (via func imagePickerController). I tried playing with the control object above, but unfortunately I couldn’t :( I believe that this is not the way I can find, but I struggle to find the right one. Any help would be appreciated.
Piotr source share