UIDevice MacAddress Helper

Released 6 years ago , Last update 6 years ago

Find Mac address on iOS device and create UDID from that MAC address

This is a simple UIDevice component for getting MAC address of Wireless network card (en0) on iOS devices and unique device identifier based on that MAC address.

Unique identifier is hashed from MAC address with SHA256.


  • import UIDevice+MacAddress.h and UIDevice+MacAddress.m to your project
  • import UIDevice+MacAddress.h to your controller or class
  • use [[UIDevice currentDevice] macAddress:@"-"] to get mac address of wlan network card in format AA-BB-CC-DD-EE-FF or use @"" as a delimiter to get clear hex
  • use [[UIDevice currentDevice] uniqueDeviceIdentifier] to get unique device identifier that you can use instead of UDID which is deprecated from iOS5.


This code works even if Airplane mode is on or if Wi-Fi is off.

  • 5 2
  • 4 2
  • 3 0
  • 2 0
  • 1 0
4 Reviews Read Reviews


14 day 14-day money-back guarantee


MIT license

The MIT license is an open-source license.

License » MIT license Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • MT Mai Huy Toàn 5 years ago
    is this support for iOS7 ?