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
  • 4,143
  • 5
  • 30
  • 58
OneGuyInDc
  • 1,557
  • 2
  • 19
  • 50

2 Answers2

3

This is the code

[[UIDevice currentDevice] name];

:)

Gavin
  • 8,204
  • 3
  • 32
  • 42
Harsh
  • 2,852
  • 1
  • 13
  • 27
3

You can find the device name with:

[[UIDevice currentDevice] name]
Zaphod
  • 6,758
  • 3
  • 40
  • 60