Its not possible to read an SMS with objective c, nor is it possible to send an SMS to an iOS device and not have the user alerted.
If you want to implement an "Enter you phone number to receive a code" system, you must have the user copy the code in.
This may be possible with a jailbreak, but can't confirm that. From an apple, and being approved by the appstore point of view. Big no no