UIDevice MacAddress Helper

Released 3 years ago , Last update 3 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.

Usage:

  • 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.

UDID returned is in the format XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX-XXXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX

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

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

Pricing

FREE

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 1 year ago
    is this support for iOS7 ?