Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIStoryboard #33

Open
kishorehvk opened this issue Apr 26, 2017 · 3 comments
Open

UIStoryboard #33

kishorehvk opened this issue Apr 26, 2017 · 3 comments

Comments

@kishorehvk
Copy link

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

@yannickl
Copy link
Owner

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.

@kishorehvk
Copy link
Author

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.

@yannickl
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants