JBWebViewController
JBWebViewController copied to clipboard
Using JBWebViewController with Storyboard
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.