iphone 获取 设备号

 UIDevice *device = [UIDevice currentDevice];//创建设备对象

    NSString *deviceUID = [[NSString alloc] initWithString:[device uniqueIdentifier]];

    UIAlertView *view = [[UIAlertView alloc]initWithTitle:nil message:deviceUID delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil];

    [view show];

posted @ 2012-12-06 15:30  废弃账号  阅读(117)  评论(0)    收藏  举报