摘要: 今天修改了以前的iphone程序代码,主要对程序的UI做了修改,调整了布局,图片,文字等显示效果,看着更舒服了。原来效果修改后的效果实现圆角图片代码:UIColor *color=[UIColor colorWithRed:0.95 green:0.95 blue: 0.95 alpha:0];[asyncImage setBackgroundColor:color];//设置背景透明 /****设置图片圆角begin***/asyncImage.layer.masksToBounds = YES;asyncImage.layer.cornerRadius = 5.0;asyncImage.l 阅读全文
posted @ 2011-06-15 23:52 fighter 阅读(1475) 评论(0) 推荐(0) 编辑
摘要: iphone开发时某些情况我们可能需要获取用户使用的设备唯一编号来做一些事情。我现在要实现一个验证的过程,但目前为止ios 最新sdk中还没有提供获取用户手机号码的api,所以只有通过获取设备id做验证了,具体代码很简单。 //获取设备id号 UIDevice *device = [UIDevice currentDevice];//创建设备对象 NSString *deviceUID = [[NSString alloc] initWithString:[device uniqueIdentifier]]; NSLog(@"%@",deviceUID); // 输出设备i 阅读全文
posted @ 2011-06-15 23:23 fighter 阅读(3579) 评论(0) 推荐(1) 编辑