You have two options HID and SDK
HID (aka quick and dirty)
Put your scanner in HID mode and it will behave like a bluetooth keyboard.
Pros
- Scan into input fields in any existing app
- Scan into the browser
- No integration required
Cons
- Limited ability for processing scanned data
- No control over where scanned input goes
- On screen keyboard doesn't auto-hide/appear
In HID mode, the scanner "types" data under the cursor. This means data can be scanned into the wrong field and the text input must be editable, so the user can modify the scanned value. You can configure the scanner to append a tab or return character to the scanned data.
HID mode is great for proof-of-concept type applications and is the only option for browser based applications at the moment.
SDK (aka doing it right)
Personally, I've never developed an iOS application using the SDK, so the best I can do is refer you to this create an iOS barcode scanner application video on youtube.
Pros
Total control over scanned data
- Direct input to different fields based on pattern or barcode type
- Prevent the user from editing the scanned data
- Coerce the barcode into the desired format, before continuing
- Take automatic action upon receipt of a scan
Cons
- Not a turnkey solution for existing apps
- Does not work in the browser
Full disclosure: I am a consultant to Socket Mobile, Inc.