0

I've been stuck on this topic for a last few days. I'm trying to scan a barcode and have it displayed in two different textfields. As of now, I can scan the barcode, but it displays the full barcode in each textfield. I need it to be like this… example :

Barcode 123-123456-001 ( Barcode has value, ex: 123 = game number, 123456 = book number, 001 = ticket number in sequence

123= 1st textfield

123456= second textfield

001 = nil (for now, will be used later)

Any help in the right direction would be greatly appreciated!!

Thank you for any suggestion or help!

Wayne Hartman
  • 18,369
  • 7
  • 84
  • 116

1 Answers1

0

Since you didn't share your answer, I will post one.

Using the componentsSeparatedByString: function on the returned NSString will give you an array of NSString objects. Simply put the correct objects into the correct textfields after that.

Ollie
  • 301
  • 2
  • 11