0

How can I programmatically obtain the Device name of the iOS device i.e. "Bob's iPad". This name is visible in the Settings > General > About > Name

iOS Dev
  • 3,963
  • 4
  • 29
  • 52
OneGuyInDc
  • 1,519
  • 1
  • 18
  • 48

2 Answers2

3

This is the code

[[UIDevice currentDevice] name];

:)

Gavin
  • 8,169
  • 3
  • 31
  • 42
Harsh
  • 2,832
  • 1
  • 12
  • 27
3

You can find the device name with:

[[UIDevice currentDevice] name]
Zaphod
  • 6,164
  • 3
  • 36
  • 54