Log in or register to post comments

Cloud reco Camera freeze

February 2, 2015 - 9:23pm #1

I'm using the following code to move to "cloudrecoviewcontroller" from "homeviewcontroller" :

  - (void)viewDidLoad

{

    [super viewDidLoad];

    

    vcClass = NSClassFromString(@"CloudRecoViewController");

    

    cloudVC = [[vcClass allocinitWithNibName:nil bundle:nil];

 

}
 

-(IBAction)startScan:(id)sender

{

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

 

}

and following code to move back to "homeviewcontroller" from "cloudrecoviewcontroller" :

  -(void)closeButtonTapped:(id)sender

{

  

    [bgView removeFromSuperview];

   

     [self.navigationController popViewControllerAnimated:NO];       

}

After a few switches between the view controllers, the camera is freezing. But the scanning happens in background and then camera works only after app restart. I'm facing the issue after an on iOS 8 update on device.

Has this got something to do with memory management?

I also tried using a parent view controller for cloud reco, but didn't work well. How can I reinitialise camera and scanning on moving to cloudrecoviewcontroller?

I tried to define cloudreco class on each "scan button" click, but it lead to a black screen instead of camera.

 Thanks in advance

 

 

 

 

 

 

Cloud reco Camera freeze

February 5, 2015 - 8:59pm #2

Is the camera being stopped and restarted when switching view controllers?

Log in or register to post comments