ios - iPhone Camera Overlay issue -



ios - iPhone Camera Overlay issue -

i using custom overlay photographic camera in iphone app,i have followed this tutorial. problem is-the overlay comes before shutter opens,means on shutter users can see overlay items(buttons,image etc)

i have tried timer,to delay overlay appearance time of shutter opening animation,but not right way.

any improve idea?

-(void)onshowcam { nslog(@"sdadas"); overlay = [[customoverlayview alloc] initwithframe:cgrectmake(0, 0, screen_width, screen_heigth)]; overlay.delegate = self; .....

try utilize

cameraoverlay=[[imagepickercontroller alloc]initwithframe:cgrectmake(0, 0, screen_width, screen_heigth)]; imagepicker.sourcetype=uiimagepickercontrollersourcetypecamera; imagepicker.delegate=self; imagepicker.showscameracontrols=no; imagepicker.cameraflashmode=uiimagepickercontrollercameraflashmodeoff; [imagepicker setcameraoverlayview:cameraoverlay]; //show photographic camera [self presentmodalviewcontroller:imagepicker animated:yes];

iphone ios camera overlay

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -