我有一个 UIImagePicker 控制器,上面有一层可以翻转相机、拍照等的按钮,我希望其中一个可以访问相机胶卷。按下按钮时,我希望打开相机胶卷,当用户选择照片时,它应该启动didFinishPickingMediaWithInfo
. 我有这个:
UIImage *cameraRoll = [UIImage imageNamed:@"cameraroll_icon"];
UIButton *cameraRollButton = [UIButton buttonWithType:UIButtonTypeCustom];
cameraRollButton.frame = CGRectMake(250, 0, 48, 30);
[cameraRollButton setImage:cameraRoll forState:UIControlStateNormal];
[cameraRollButton addTarget:self action:@selector(accessCameraRoll:) forControlEvents:UIControlEventTouchUpInside];
[overlay addSubview:cameraRollButton];
// accessCameraRoll
-(IBAction)accessCameraRoll:(id)sender {
// What do I put here to get camera roll for self.imagePicker?
}