gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5
Acerca de
Recupera la compatibilidad con identificadores únicos en iOS 5 y utiliza la dirección MAC del dispositivo junto con el identificador del paquete para generar un nuevo identificador único con hash.
Desarrollo web y de aplicacionesCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- -1
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original** NOTE: this is not going to work under iOS 7 **
Description
Apple stopped supporting a unique identifier for iOS. This source code solves the problem. It generates a unique identifier based on the mac address of the device in combination with the bundle identifier.
What you need to do:
copy
NSString+MD5AdditionandUIDevice+IdentifierAdditionto your project.if your are using ARC in your project, you have to add the
-fno-objc-arcflag to both files. Apple ARC Guidelinesuse
[[UIDevice currentDevice] uniqueDeviceIdentifier]to retrieve the unique identifier (it's a hash of your Bundle ID + MAC address)use
[[UIDevice currentDevice] uniqueGlobalDeviceIdentifier]to retrieve a global unique identifier (it's a hash of the MAC address, used for tracking between different apps).have fun and follow gekitz ;)
//Thanks to Erica Sadun for her UIDevice+Hardware Addition (used for the mac address retrieval).
License
see license file.
Explorar proyectos relacionados
Cargando…