How can I retrieve the UDID on iOS?

前端 未结 10 1312
礼貌的吻别
礼貌的吻别 2020-12-14 06:05

I was wondering if it was possible to find out the UDID of the user\'s iPhone. Can someone shed some light?

10条回答
  •  鱼传尺愫
    2020-12-14 06:56

    In IOS5 and above, use this one to find UDID

    NSString *uuidString = nil;

    CFUUIDRef uuid = CFUUIDCreate(NULL); ...

    I think you are showing how to generate a unique identification number, not to get the unique id of a device.

提交回复
热议问题