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
Post a Comment