UIDevice MacAddress Helper

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.

You need to log-in or create an account
  • Create an account
  • Log-in
Please use your real name.
Activation link will be sent to this address.
Minimum 8 characters
Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

X

Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

License » MIT license Download
or Get a quote

for customization or integration services

  • Good component..
    D DevJan
    2 years ago, 0 comments
    Was this helpful?
    Flag 1 of 1 people found this review helpful
  • very helpful..... thank you very much
    very helpful..... thank you very much
    S sridhar
    11 months ago, 0 comments
    Was this helpful?
    Flag
  • Very helpful. Thank you.
    KD Konstantin Demidov
    2 years ago, 0 comments
    Was this helpful?
    Flag
Post a comment

Or enter your name and Email
  • MT Mai Huy To√†n 1 year ago
    is this support for iOS7 ?