objective c - UIImagePickerController to show only videos -


is possible have uiimagepickercontroller show videos on phone , not both videos , photos? thanks.

set mediatype property of uiimagepickercontroller.

//example documentation myimagepickercontroller.mediatypes = [[nsarray alloc] initwithobjects: (nsstring *) kuttypemovie, nil]; 

or simplify documentation's example newer syntax:

myimagepickercontroller.mediatypes = @[kuttypemovie]; 

more information , guidance available in documentation.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

how does one get csharp-sqlite to throw exceptions for duplicates or foreign key constraint violations -

Simple Angular 2 project fails 'Unexpected reserved word' -