Log in or register to post comments

Redirect to ViewController

June 3, 2014 - 3:56am #1

In the about page click the start button it goes BooksViewController and camera running. Then have button for go to about page, again click the start button it's not working. The page is not going to BooksViewController. 

Code for go to About page;

 BooksAppDelegate *arimage=[[UIApplication sharedApplication]delegate];

     ARimageViewController *over=[[ARimageViewController alloc]init];

    [arimage.window setRootViewController:over];

 

Again click the start button it's not going to BooksViewController:

 

 Class vcClass = NSClassFromString(self.appViewControllerClassName);

    id vc = [[vcClass allocinitWithNibName:nil bundle:nil];

    

    [self.navigationController pushViewController:vc animated:NO];

   // [vc release]; // don't leak memory

#ifdef OLD

    SampleAppSlidingMenuController *slidingMenuController = [[SampleAppSlidingMenuController alloc] initWithRootViewController:vc];

    

    [self.navigationController pushViewController:slidingMenuController animated:NO];

    [slidingMenuController release];

   // [vc release]; // don't leak memory

#endif

 

 

 

 

Log in or register to post comments