Skip to content

Can this be used with a UIViewController? #3

@imranansari

Description

@imranansari

Hi,

I'm trying to build a Hybrid app using the bridge (I'm literally a few days old in iOS dev) .

have a tabbar navigation based app, and I'm using a UIViewController for each tab view, one of the tab would use the WebView.
I wast sure if I could implement WebViewJavascriptBridgeDelegate in a UIViewController class like below.

@interface CurrentTimeViewController : UIViewController <UIWebViewDelegate, WebViewJavascriptBridgeDelegate>

I get a EXC_BAD_ACC during runtime in the main class

int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}

Any pointer would be much appreciated.
-Imran

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