How do you programmatically get the serial number of an iPhone?

后端 未结 3 830
Happy的楠姐
Happy的楠姐 2021-02-01 10:07

I want to know the serial number of my iPhone using my application. I have writen code below.

- (NSString*)getSerialNumber
{
 CFTypeRef serialNumberAsCFString;
         


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 10:40

    Ready to use category on UIDevice: UIDevice+serialNumber. Not sure this would be accepted on the App Store.

提交回复
热议问题