QRCodeReaderViewController icon indicating copy to clipboard operation
QRCodeReaderViewController copied to clipboard

UIStoryboard

Open kishorehvk opened this issue 7 years ago • 3 comments

Hi ,

Instead of dismisViewController in didScanresult method I need to use UIStoryboard *storyboard= [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UIViewController *main = [storyboard instantiateViewControllerWithIdentifier:@"MainViewController"]; [self presentViewController:main animated:YES completion:nil]; But it is not pushing into the respective view controller. How could I do it

kishorehvk avatar Apr 26 '17 12:04 kishorehvk

Hi @kishorehvk,

If you try to present a view controller while another one is already displayed it'll not work. You need first to dismiss the current presented view controller then to display the new one. Or just present the new view controller into the QRCodeReaderViewController instance instead of self.

yannickl avatar Apr 26 '17 12:04 yannickl

My question is,I have View Controller VC, When i start to scan it opens a new viewController lets say VC 2 and in that new viewcontroller it opens the camera. If I dismiss it, only the camera goes and the view controller remains idle. But i need to go back to view VC.

kishorehvk avatar Apr 26 '17 13:04 kishorehvk

You have a VC1 that opens the QRCodeReaderViewController (VC2) with its camera? And when you try to dismiss the VC2 your VC2 is always here?

If you follow the example in the README or in the example project this is the same behaviour that you want to achieve.

yannickl avatar Apr 26 '17 14:04 yannickl