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
2009-07-08 19:41:27
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
2009-07-08 19:49:45
@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
2009-07-08 19:58:09