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

Using JBWebViewController with Storyboard #13

Description

@Ponf

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions