ios - Remove "choose from gallary" option in iphone? -
this question has answer here:
- ios safari restrict image upload 2 answers
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:
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
Post a Comment