![]() ![]() You need to provide a better description of how your app is structured and what you want to do if you want specific help with that, but that sounds like a more generic "how do I pass info from one view controller to another" type question, of which there are hundreds here on SO. The same basic technique would apply if you want to pass the text info from the QR code. You could do that in the prepareForSegue method that links to your second view controller, assuming you're using storyboards. If you want to save a picture then you would need to code your QR scanner to capture the image as a UIImage, and then pass that to your second view controller. Do you want to save a picture of the QR code, or the text information that comes from decoding it? I think you will probably have to do your testing on an actual iOS device.Īs to how to ".save the result of my scanned codes in the other page" that depends. QR scanning involves using the built-in camera, and the simulator does not let you use a Mac camera as an iOS camera. You might want to use that rather than custom QR reader code.)Īs to how to test QR code scanning from your Mac, that's going to be a problem. (A link to other projects in the iOS 7 series: The sample App is not from Apple, its an open source GitHub project.īe sure to look at the other postings from this company. I'll take a look on my other Mac and post an edit if I can find the sample code.ĮDIT: I was mistaken. I'm on a different machine right now so I can't seem to find the app. ![]() There is a sample app built right into the Xcode help system that shows how to use it. IOS 7 now has the ability to detect QR codes and other barcodes directly. ![]()
0 Comments
Leave a Reply. |