As rckoenes mentioned, you cannot get the IMEI. Also you cannot get any ID that can link to the physical device (UDID, MAC address). However, if you need to get a unique identifier that will remain constant whenever the user uses your app, you can use the [UIDevice identifierForVendor]
property.
Note you cannot use this identifier for advertising purposes, use the [ASIdentifierManager advertisingIdentifier]
property instead (following the guidelines for AdSupport).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…