在iOS中获取设备ID或Mac地址 [英] Getting Device ID or Mac Address in iOS

查看:838
本文介绍了在iOS中获取设备ID或Mac地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用rest来与服务器通信的应用程序,我想获取iphone的mac地址或设备ID以进行唯一性验证,如何做到这一点?

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?

推荐答案

[[UIDevice currentDevice] uniqueIdentifier] 保证每个设备都是唯一的。

[[UIDevice currentDevice] uniqueIdentifier] is guaranteed to be unique to each device.

这篇关于在iOS中获取设备ID或Mac地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆