Hey everybody,
I know it's been a while since this thread started, but since I've managed to pull a few threads together to get something that at least eliminates the error, I thought I'd share.
From the thread on Nimblekit and Zbar (
http://www.nimblekit.com/forum/viewtopic.php?f=6&t=1771#p8989), Sunny shows how to set up a tie to the viewcontroller NimbleKit makes available.
I place it just before the
return YES; in
AppDelegate.m.
- Code: Select all
UINavigationController *controller = [[NSClassFromString(@"NKBridge") sharedInstance] navigationControllerForPage:@"main.html"];
if (!controller) {
controller = [[NSClassFromString(@"NKTabBarController") sharedInstance] tabController];
}
if (!controller) {
controller = [[NSClassFromString(@"NKBridgeInternal") sharedInstance] _nimbleViewController];
}
self.window.rootViewController = controller;
It works well, though better on iPhone than iPad.
Does anybody have any commentary on whether there is a better way of doing this?