Open GrafixCube opened 11 years ago
I found a workaround, not sure how to fix the original animations, but I inserted the code below in the void close function.
(void)close {
NSLog(@"--> CDVInAppBrowserViewController.close()...");
[CDVUserAgentUtil releaseLock:&_userAgentLockToken];
// OLD close actions if ([self respondsToSelector:@selector(presentiViewController)]) { [[self presentingViewController] dismissViewControllerAnimated:YES completion:nil]; } else { [[self parentViewController] dismissModalViewControllerAnimated:YES]; }
self.currentURL = nil;
if ((self.navigationDelegate != nil) && [self.navigationDelegate respondsToSelector:@selector(browserExit)]) { [self.navigationDelegate browserExit]; } [UIView beginAnimations:@"MoveView" context:nil]; [UIView setAnimationCurve:UIViewAnimationCurveEaseIn]; [UIView setAnimationDuration:0.5f]; self.view.frame = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y+800, self.view.frame.size.width, self.view.frame.size.height); [UIView commitAnimations];
}
I cant seem to close the window, I see in the log I keep getting,
CDVInAppBrowserViewController.close()
is it because I am running ios 6.1 sdk?