开发者

pushing view controller onto uiimagepickercontroller causes image picker buttons to be misnamed

I have a uiimagepicker controller where i push a tableview controller ontop of inside:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image
        editingInfo:(NSDictionary *)editingInfo {

When I click back on the tableview controller nav bar it should take me to the preview view( i assume). Instead it takes me to a view where i can take a new picture with a toolbar on the bottom that has "Retake" and "Use" buttons. The problem is, the image preview is no longer there, instead it is in photo taking mode with the "Retake开发者_运维技巧" button cancelling the image picker and the "Use" button snapping a photo. The button titles don't represent the actions. Any ideas?


I think you are missing a step. The imagePickerController is used for picking images. After you take the image you have to do something with it (store it in your application or save it to the camera roll), then you can push the table view controller on top of it. When you press the back button and the to the imagetPicker controller is called, it calls on the camera and waits for you to pick another image.


According to the documentation:

The view hierarchy for this class is private and must not be modified, with one exception. In iOS 3.1 and later, you can assign a custom view to the cameraOverlayView property and use that view to present additional information or manage the interactions between the camera interface and your code.

It would seem that includes pushing view controllers onto the UIImagePickerController.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜