简体   繁体   中英

Customized Camera Toolbar on iPhone

I've created a camera application for iPhone and now I sit and polish the last of it. My application is a collage application where the user can take multiple pictures in a row.

As it is today I have a customized camera view that contains one UIButton for taking the pictures and one UIButton for getting back to the main view.

The problem is that my application is design for landscape mode and the camera control can only show in portrait mode. This makes the design of the GUI a little bit tricky and I now want to move away from having the buttons in the view to having the placed in a toolbar. When you initialize the camera you can set a bunch of different parameters and one of them is UIImagePickerController.toolbarHidden . If I set the value to NO it will show an empty toolbar and my question here is, how do I add items to this toolbar?

I've tried different solutions without any luck.

Thanks, drisse

标准的UIViewController方法-setToolBarItems:animated:方法不起作用吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM