"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Starting QCAR with a tabBarController

Hello -Team, Do not know if its possible hope you guys can point me in the right direction. Currently i have an app which has a tabBarController that has 3 options. The idea is that QCAR starts working when the user selects the second option of the menu QCAR (when the view for the second option is loaded). - The tabBar should remain on the view after QCAR has started, and if i click on any of the other elements of the menu, QCAR should stop. Thank you,

victorduarte

Mon, 09/26/2011 - 20:59

Hello MoSR, I have been on this with no luck, i am not able to make my EAGLview one of the views within the UITabBarController (.xib). Could you give me guidance on this subject? Thank you in advance.

[QUOTE=victorduarte]I am not able to make my EAGLview one of the views within the UITabBarController (.xib). Could you give me guidance on this subject? [/QUOTE] Hi Victor, I'll try out this scenario when I next have a spare slot - unless somebody with experience of this construct can step in to a

omartayeb

Wed, 09/28/2011 - 17:32

Hi Victor, I've experimented with this before. Below is my code (I never used this code in an app, so it will need to be tested further). It should be clear how to do this from a XIB too, just reference your elements in the header file. This is using the ImageTargets sample app as a template.

victorduarte

Tue, 10/04/2011 - 01:56

Hey guys, So I keep working on this, I think I'm close let me know your thoughts. Sorry for the long post, but I hope its clear where I am at. In a nutshell what I have is: 1. Created a window file an named it MainWindow.xib 2. Inserted a Tab Bar Controller. 3.

The example provided by Omar tells you what's needed - look at the set up of EAGLview (the rotation and positioning). The crucial thing you appear to be missing is the onResume() as shown in Omar's 'didSelectViewController'. Put a break point or NSLog call in your renderFrameQCAR so you know when

victorduarte

Fri, 10/07/2011 - 01:05

Hey -Team, So as MoSR said, onResume() was missing. Included the following on the posted code. [CODE] //- (void)viewWillAppear:(BOOL)animated - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [viewEAGLView onResume]; } [/CODE] If there is any room for improvement please ad