Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The built-in image picker is no good. </p> <p>Create your own image picker and add it to your navigation controller as a normal view. Start from either the <a href="http://www.icodeblog.com/2011/03/03/update-elcimagepickercontroller/" rel="nofollow">Matt Tuzzolo</a> or the MyImagePicker from the WWDC 2010 sample code. Note that you probably want to add image and video preview - I copied the image viewer from MyImagePicker and added a 'add' or 'remove' button to it, and the same for video. </p> <p>Your image picking is in two steps, one for selecting the group, and one for selecting the assets within the group. I recommend dividing the first step into a two - if there is only one, then go directly to that group, i.e. when you have found the first group, check whether that group was the last (block stop argument). Then push the right view controller.</p> <p>Obiously modify the size of the thumbnails also, they are iPhone size now. Adding a line of metadata (icon and duration) looks much nicer and is more informative for video. </p> <p>I also recommend adding a 'click-and-hold' function for extended information after like 2 seconds.</p> <p>Handle different sources by creating a protocol which gives you what you want, i.e. </p> <pre><code>-(BOOL)isImageAtIndex:(NSInteger)index; -(UIImage*)thumbnailForUndex:(NSInteger)index; -(void)setSelectedAtIndex:(NSInteger)index; </code></pre> <p>Creating a source which handles local files, included resources and assets is perfectly possible - I use NSURLs and check on the url scheme. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload