ios6 - viewdidappear not getting called when canceling UIImagePicker -


after cancel image picker, viewwillappear gets called viewdidappear not called. , subsequent loading of view going , down stack not it.

only if switch tab , switch back, viewdidappear calling. use code cancel image picker (ios 6)

-(void) imagepickercontrollerdidcancel:(uiimagepickercontroller *)picker{ [self dismissviewcontrolleranimated:no completion:^{         self.imgscrollview.hidden=no;     }]; } 

you trying dismiss viewcontroller presented imagepickercontroller, try using picker instead of self this:

-(void) imagepickercontrollerdidcancel:(uiimagepickercontroller*)picker {     [picker dismissviewcontrolleranimated:no completion:     ^{           self.imgscrollview.hidden=no;     }]; } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -