tags:

views:

2043

answers:

1

If you open Settings -> General -> About, it'll say "Bob's iPhone" at the top of the screen. How do you programmatically grab that name?

+8  A: 

From the UIDevice class:

The UIDevice is a class that provides information about the iPhone or iPod Touch device.

Some of the information provided by UIDevice is static, such as device name or system version.

source: http://servin.com/iphone/uidevice/iPhone-UIDevice.html

Offical Documentation: Apple's iPhone Reference Library -> UIDevice Class Reference

Frank V
Be careful: the tutorial at that link, while quite useful, is aimed at OS 2.2, and uses some methods that are deprecated in 3.0.
Tim
@Tim: You are absolutely right. I didn't think of that. Though, I wasn't suggesting the tutorial; I was simply providing my source of information plus a source for more information.
Frank V