Getting Device ID or Mac Address in iOS [duplicate]
问题 This question already has an answer here: How can I programmatically get the MAC address of an iphone 12 answers I have an application that uses rest to communicate to a server, i would like to obtain the iphones either mac address or device ID for uniqueness validation, how can this be done? 回答1: [[UIDevice currentDevice] uniqueIdentifier] is guaranteed to be unique to each device. 回答2: uniqueIdentifier (Deprecated in iOS 5.0. Instead, create a unique identifier specific to your app.) The