开发者

Changing Navigation Bar of UIImagePickerController

I am trying (and failing) to change the navigation bar of the UIImagePickerController .

self.pickerController.navigationBar = myCustomBar;

doesn't work, since navigationBar is readonly.

I still want to change the buttons (and colors) on the default "cameraControls" bar. Do you know of any way to do that? Thanks!

=============

Ok.. Thanks for the quick answers! So let me detail a little bit here... For my application I only need the camera feed, and th开发者_运维百科en I want to add my own buttons to a controls bar. I am not interested in photos (not yet anyways). Do you think it's best that I drop the UIImagePicker and just search for something else? Thanks a lot!


You should consider hiding the original camera controls using the showsCameraControls and set your own controls using a cameraOverlayView. Both are properties of UIImagePickerController.


You might try searching the subview tree of the UIImagePickerController, finding the camera controls bar and hiding that. Then add a new subview with your controls to replace it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜