开发者

Serial no of i-phone/i-pod

Can anyone tell me the way for getting the UDID number of an iPhone programmatically .I found som开发者_高级运维e private framework like IOKit i dont want to use this.


HI,

NSString *UDID=[[UIDevice currentDevice] uniqueIdentifier];
NSLog(@"UDID==> %@",UDID);


Why do you need it? Tell us what problem you're trying to solve and we may be able to help you find another way to solve it. For instance:

  1. If you're trying to get a device-unique value, the UDID is precisely that.
  2. If you're trying to tie your app's data to a specific device... the UDID is again the right thing for the job.
  3. If you're trying to determine a model based on serial numbers, consider using uname() instead.
  4. If you're trying to spy on the user... naughty you!

Can you give us more information on your situation?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜