开发者

iPhone - custom UIImagePickerController

I am showing a UIImagePickerController in an app that just works with videos. So, it is nonsense to sho开发者_C百科w pictures to users.

I have changed all properties I see on the controller but the picker shows like the next picture.

Two questions:

  1. How do I get rid of this choice and show just the Photo Library, without having to tap first to get there.
  2. As far as I know, all videos shot with iPhone end on camera roll. Suppose the iPad gets a camera in the future. Does this Photo Library option include the camera roll or what?

thanks in advance.

iPhone - custom UIImagePickerController


You can probably use this and customize to fit your needs.

http://www.icodeblog.com/cloning-uiimagepickercontroller-using-the-assets-library-framework/

I found some issues with it, mostly that it takes a while to load on a device when there are 200+ images. I have not dug into to much, but this might be a start for you.


Not sure if this helps but to access the camera roll directly you just need to set your UIImagePickerController source like this:

    picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜