Wednesday, November 27, 2013

get device Name and device id in iOS 5 and IOS6 and iOS 7

#pragma mark - get unique id
 + (NSString *)getUUID
{
    return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
}

#pragma  mark - get device name
 + (NSString *)getDeviceName
{
    return [[UIDevice currentDevice] name];

}

No comments:

Post a Comment