开发者

Add a button to the Camera Toolbar on the iPhone

I am using 开发者_如何学JAVAa UIImagePickerController subclass to take photos in my app.

The toolbar for the camera has a cancel button and a photo button on it. I would also like to add another button on the right.

I have tried to add a UIBarButtonItem to the subclass's toolbar, but that doesn't work. I have also tried to make a UIToolbar that looks like the camera toolbar, so I can just overlay a toolbar with one button invisibly, but I can't seem to match the style of the camera toolbar.

Any ideas on how to add a button to the camera toolbar?


You cant customize the UIImagePickerController tool bar just like that, what you have to do is work with with the overlay view in the UIImagePickerController which allows you to specify a view to use for the picker instead of the default one, here is a link with information about this overlayview property of the UIImagePickerController

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜