iphone - UIimagepicker controller image only selection -


i have give functionality select photos user. have used this:

ipc.sourcetype =  uiimagepickercontrollersourcetypephotolibrary; 

now have restrict user select photos , want videos not displayed on list. or somehow user should not select video @ all. how achieve that?

basically you're trying set "media types". , luckily imagepicker has property called "mediatypes". :) receives array of media types show selection.

even luckily-er default behaviour of imagepicker show image types.

but if want make sure can this:

[imagepicker setmediatypes: [nsarray arraywithobject:kuttypeimage]]; 

and don't forget add @ top of file... :)

#import <mobilecoreservices/utcoretypes.h> 

but really, think can trust apple when it's they're default behavior... :)


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -