属性
@property(nonatomic) UIImagePickerControllerSourceType sourceType
@property(nonatomic,copy) NSArray *mediaTypes
@property(nonatomic) NSTimeInterval videoMaximumDuration
@property(nonatomic) UIImagePickerControllerQualityType videoQuality
@property(nonatomic) BOOL showsCameraControls
@property(nonatomic,retain) UIView *cameraOverlayView
@property(nonatomic) CGAffineTransform cameraViewTransform
@property(nonatomic) UIImagePickerControllerCameraCaptureMode cameraCaptureMode
@property(nonatomic) UIImagePickerControllerCameraDevice cameraDevice
@property(nonatomic) UIImagePickerControllerCameraFlashMode cameraFlashMode
类方法
+ (BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType
+ (NSArray *)availableMediaTypesForSourceType:(UIImagePickerControllerSourceType)sourceType
+ (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)cameraDevice
+ (BOOL)isFlashAvailableForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice
+ (NSArray *)availableCaptureModesForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice
对象方法
- (void)takePicture
- (BOOL)startVideoCapture
- (void)stopVideoCapture
代理方法
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
扩展方法(主要用于保存照片、视频到相簿)
UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo)