Method to find device's camera resolution iOS
问题 Whats the best method to find the image resolution going to be captured using setting AVCaptureSessionPresetPhoto . I am trying to find the resolution before capturing the image. 回答1: With the function below, you can programmatically get the resolution from activeFormat before capture begins, though not before adding inputs and outputs: https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/index.html#//apple_ref/occ/instp/AVCaptureDevice