I ran into a bit of a pickle. I am using a uiwebview to load pages of our website through to our app and I am stuck on an upload picture component (embedded in the webpage).
I initially was having issues with the uiwebview being dismissed when choosing/selecting the phone's option to upload a picture. However thanks to this post post, the picture gallery now appears and I can select pictures.
I Implemented
`
-(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion
{
if ( self.presentedViewController)
{
if (flag == YES){
[super dismissViewControllerAnimated:NO completion:nil];}
}
`
instead of the suggested
`
-(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion
{
if ( self.presentedViewController)
{
[super dismissViewControllerAnimated:flag completion:completion];
}
}
`
to get it to work though.
Now, the same problem still remains once I do select a picture and press the 'done' button from the gallery. This closes my UIwebview in the process. Is there another method I should be overriding in my uinavigationcontrollers?