How to detect iPad/iPhone/iPod touch programmatically?

You can detect or differentiate iPad, iPhone and iPod touch with the following API

[[UIDevice currentDevice] model]

Blogged with the Flock Browser

Custom UITabbar