Latest 1.0.8
License MIT
Platforms ios 7.0, requires ARC
Dependencies ARChromeActivity, ARSafariActivity, NJKWebViewProgress

A drop-in Facebook inspired modal web browser.

JBWebViewController Screenshot

Video Demo

<img src=""
alt="JBWebViewController Video Demo" width="240" height="180" border="10" />



The recommended approach for installing JBWebViewController is through the package manager CocoaPods, which is widely used by iOS & Mac developers.

Simply add the following line to your Podfile:

pod "JBWebViewController"

Manual Install

Drag the JBWebViewController folder into your Xcode project, you may need to check the box "Copy items into destination group’s folder (if needed)".

JBWebViewController needs the following third-party libraries:

Apps using JBWebViewController

Feel free to add your app to the list.

How to use

JBWebViewController is ment to be shown modally, which is recommended to be down with it’s built in show functionality. Whilst not being recommended, it is however possible to present JBWebViewController outside a modal view controller. JBWebViewController should always be connected to a UINavigationController.

Presenting JBWebViewController

JBWebViewController *controller = [[JBWebViewController alloc] initWithUrl:[NSURL URLWithString:@""]];

[controller show];

Presenting JBWebViewController with block

JBWebViewController *controller = [[JBWebViewController alloc] initWithUrl:[NSURL URLWithString:@""]];

[controller showControllerWithCompletion:^(JBWebViewController *controller) {
    NSLog(@"Controller has arrived.");


[controller setLoadingString:@"Chargement.."];

Navigate to URL

[controller navigateToURL:[NSURL URLWithString:@""]];

Load custom NSURLRequest

NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@""]];
[controller loadRequest:request];

Reload current page

[controller reload];

Manually setting controller title

[controller setWebTitle:@"The quick brown fox"];

Getting controller title

NSString *controllerTitle = [controller getWebTitle];

Manually setting controller subtitle

[controller setWebSubtitle:@"foo bar"];

Getting controller subtitle

NSString *controllerSubtitle = [controller getWebSubtitle];

Hide URL

controller.hideAddressBar = YES;

Access UIWebView

The UIWebView used in the controller is now public.

UIWebView *webView;


Free icons by Icons8 under Creative Commons Attribution-NoDerivs 3.0 Unported.


Mention me on Twitter (@JonasBoserup) or email me (Profile).


JBWebViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "JBWebViewController",
    "version": "1.0.8",
    "summary": "A modal view controller for showing websites - inspired by the Facebook app",
    "description": "A drop-in Facebook inspired modal web browser.nnCreated to look like the web browser in the current Facebook App on App Store.",
    "homepage": "",
    "screenshots": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Jonas Boserup": "[email protected]"
    "social_media_url": "",
    "platforms": {
        "ios": "7.0"
    "source": {
        "git": "",
        "tag": "1.0.8"
    "source_files": "JBWebViewController/*.{h,m}",
    "resources": "JBWebViewController/Icons.xcassets",
    "weak_frameworks": "WebKit",
    "requires_arc": true,
    "dependencies": {
        "ARChromeActivity": [
        "ARSafariActivity": [
        "NJKWebViewProgress": [

Pin It on Pinterest

Share This