Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Using JBWebViewController with Storyboard #13

Open
Ponf opened this issue May 29, 2015 · 0 comments · May be fixed by #18
Open

Using JBWebViewController with Storyboard #13

Ponf opened this issue May 29, 2015 · 0 comments · May be fixed by #18

Comments

@Ponf
Copy link
Contributor

Ponf commented May 29, 2015

What is right way to use this viewController with Storyboard?

I'm presenting modally UINavigationController with JBWebViewController as root view controller, and at prepareForSegue delegate trying to set url:

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    if ([segue.destinationViewController isKindOfClass:[UINavigationController class]]){
        BaseNavigationController *navigationController = segue.destinationViewController;
        if ([navigationController.topViewController isKindOfClass:[JBWebViewController class]]) {
            JBWebViewController *webViewController = (JBWebViewController *) navigationController.topViewController;
            [webViewController navigateToURL:[[NSURL alloc] initWithString:@"http://apple.com"]];
        }
    }
}

but it opens with empty page and without statusbar.

Btw, how to change title appearance? Font and colour.

hactar added a commit to hactar/JBWebViewController that referenced this issue Jul 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant