ios - Remove "choose from gallary" option in iphone? -


this question has answer here:

i working on project provides functionality of capturing image phone , upload websites server.

but facing problem while using iphone.

it shows "choose gallary" option when user clicks on snap button.

here image:

enter image description here

is possible disable option ? how disable option iphone whenever website used?

i want remove option "choose existing".

try code:

        uiimagepickercontroller *imagepickcontroller=[[uiimagepickercontroller alloc]init];         //you can use issourcetypeavailable check          if ([uiimagepickercontroller    issourcetypeavailable:uiimagepickercontrollersourcetypecamera])         {             imagepickcontroller.sourcetype=uiimagepickercontrollersourcetypecamera;             imagepickcontroller.showscameracontrols=yes;             //  self.usingpopover = no;         }         else if ([uiimagepickercontroller  issourcetypeavailable:uiimagepickercontrollersourcetypephotolibrary]) {//check photolibrary  available or not             imagepickcontroller.sourcetype=uiimagepickercontrollersourcetypephotolibrary;             imagepickcontroller.sourcetype = uiimagepickercontrollersourcetypephotolibrary;         }         else if ([uiimagepickercontroller issourcetypeavailable:uiimagepickercontrollersourcetypesavedphotosalbum]) //check front camera available or not             imagepickcontroller.sourcetype=uiimagepickercontrollersourcetypesavedphotosalbum;         //else //!!!!!!!!!!!exception          imagepickcontroller.delegate=self;         imagepickcontroller.allowsediting=no;          [self presentmodalviewcontroller:imagepickcontroller animated:yes]; 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -