Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
Free

MIT license

The MIT license is an
open-source license.
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

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

(3 ratings)

UIDevice MacAddress Helper

UIDevice MacAddress Helper
Developed by Amar Kulo, Released Mar 11, 2012

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

Objective-C

Tags: device , identifier , udid , uid

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.

View all 3 reviews »

User Reviews

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.