marcuswestin/WebViewJavascriptBridge — Issue #3: Can this be used with a UIViewController?
Author: imranansari
Created: 2011-11-28 07:01:50+00:00
State: open

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

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