Not quite sure what you're asking so I will take a guess.
If you want to show barcodes, you can use an SDK like this one:
http://www.onbarcode.com/products/iphone_barcode/
(I have no experience with that SDK, it's just the first one I found.)
It's easy to make a barcode which relates to just one iPhone: just generate a random number from a big range and show that number as a barcode. I admit there's a chance that two phones will generate the same number but it's small.
But Apple has intentionally made it difficult to track a particular iPhone across apps, passing this identity from one app to another. You can track an iPhone within one of your own apps, but only that app can see that code. This is what users want: they want privacy, not to be tracked.