JBWebViewController icon indicating copy to clipboard operation
JBWebViewController copied to clipboard

Using JBWebViewController with Storyboard

Open Ponf opened this issue 10 years ago • 0 comments

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.

Ponf avatar May 29 '15 08:05 Ponf