To check current iPhone OS version whether satisfy requirement
Another useful info
How to determine iPhone 3G or iPhone 3GS ?
The return values will be as follows:
- iPhone Simulator == i386
- iPhone == iPhone1,1
- 3G iPhone == iPhone1,2
- 3GS iPhone == iPhone2,1
- 1st Gen iPod == iPod1,1
- 2nd Gen iPod == iPod2,1