r/simpleios • • Jun 19 '14

QR code scanner?

Has anyone had any experience coding QR code scanners in Obj-C? My plan is to create an app where (for example) you have a bunch of different real-world objects with a code stuck onto them, and if you scan it with the app it gives you more information about the object. I'm working through the BNR book and as I do so I have this app idea in my head to work towards.

Edit - one of the main things I'm concerned about is the handling / storing of the information about the real-world objects to be presented after a scan, as there will potentially be about 200 of them. I have never used databases before, but is this an option? Or are there others?

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jun 20 '14

Thanks for the answer. I was planning on having the information directly on the app - the information would be mostly text, perhaps some small images and some hyperlinks to websites with more information. Unfortunately I don't have a web server under my control (plus I wouldn't know where to begin with that!) and I don't imagine that the data would change that often.

What would be the best way to manage the data? Store as text files? Or maybe HTML files and present in a web view or something? You can probably tell how little I know about this - just spitballing to plan ahead!

2

u/cwcoleman Jun 20 '14

Makes sense.

Look into 'Core Data' in the developer center. SQLite is one option. It is basically a database that your app can use for such information. Storing as XML within your app is another option.

Then create a view inside your app that presents the data to the user. This view could have text, an image, and a hyperlink.

Good luck.

1

u/[deleted] Jun 22 '14

Thanks for all your help - greatly appreciated.