Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Close Window #2

Open
GrafixCube opened this issue Aug 22, 2013 · 1 comment
Open

Can't Close Window #2

GrafixCube opened this issue Aug 22, 2013 · 1 comment

Comments

@GrafixCube
Copy link

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?

@Jase4yaz
Copy link

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];

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants