开发者

How to se UIImagePickerController (Camera source) inside UITabBarController

I want to set UIImagePickerController inside my UITabBarController but I want it to be from source: UIImagePickerControllerSourceTypeCamera

How can I set this?

I added a controller to UITabBarController and set it as UIImagePickerController, but I cannot find a option t开发者_如何学Goo set it to be the Camera In Interface Builder. I just found PhotoLibrary and SavedPhotos.

Is this possible?

Thanks in advance.

Ignacio


Answer to myself: Is not possible since Camera source is not available in Mac OS, (same as simulator), hence not available in IB. This has to be done programatically. So:

  • create UIImagePickerController with camera as the source
  • add it into tabbarcontroller's controllers.

Probably i should not use UITabbarController but UITabBar instead. (So I can load controllers dinamically and show them modally.)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜