Monday, 15 August 2011

Camera show black screen in ios 8 -



Camera show black screen in ios 8 -

this code capturing image 1 1 camera,but after taking 1 image next time photographic camera open black screen(like it,s shutter close).all other ios version working,but not working in ios 8.please tell me how can solve it?

-(void)opencamera { if(![pickerhandler doesdevicesupportmediatype:item_type_photo]) { [pickerhandler shownodevicesupportwarningformediatype:item_type_photo withdelegate:self]; } else { uiimagepickercontroller *picker = [[uiimagepickercontroller alloc] init]; picker.delegate = self; picker.sourcetype = uiimagepickercontrollersourcetypecamera; picker.mediatypes = [nsarray arraywithobject:(nsstring *)kuttypeimage]; [self presentviewcontroller:picker animated:yes completion:nil]; } }

go settings > privacy > pictures ... , check if app have permission.

in code, utilize verify photographic camera access.

- (bool)authorizedcameraaccess { avauthorizationstatus status = [avcapturedevice authorizationstatusformediatype:avmediatypevideo]; homecoming (status == avauthorizationstatusauthorized); }

ios camera ios8 ios8.1

No comments:

Post a Comment