iOS 选择头像后显示到imageView中 纯代码
来源:互联网 发布:mac卸载opera 编辑:程序博客网 时间:2024/06/04 21:11
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
//self.headIV.backgroundColor = [UIColor redColor];
UIImageView*iv = [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 80,80)];
//self.iv = iv 必须选择,不然无法选择到图像
self.iv = iv;
iv.layer.borderWidth = 3;
iv.layer.borderColor = [UIColor blackColor].CGColor;
iv.userInteractionEnabled = YES;
UITapGestureRecognizer*tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap:)];
tap.numberOfTapsRequired = 1;
tap.numberOfTouchesRequired = 1;
[iv addGestureRecognizer:tap];
[self.view addSubview:iv];
//[self.view addGestureRecognizer:tap];
}
- iOS 选择头像后显示到imageView中 纯代码
- iOS选择头像示例代码
- android拍照选择图库后将照片剪裁压缩显示到imageview上
- 选择系统相册或拍照显示图片到ImageView
- 圆形的imageview,常用来显示头像
- 圆形ImageView——头像显示
- 从数据文件中读取一段数据,显示到ImageView中
- 手机APP上传头像保存到oracle数据库中并显示头像(服务端)
- 动态的添加ImageView到LinearLayout中并居中显示
- ImageView中的图片保存到SD卡;sd卡中图片显示在ImageView中
- 如何在代码中设置ImageView的全屏幕显示
- WEB中选择头像技巧
- [纯代码/OC]IOS开发入门到进阶笔记20150714
- [纯代码/OC]IOS开发入门到进阶笔记20150715
- 实现显示圆形头像及选择相册相机修改头像
- iOS 修改头像,几行代码实现从相册选择照片
- 注册用户选择头像及时显示啦。
- 纯代码写iOS
- 嵌入式工程师应该知道的C语言 .
- thumb长跳转指令(BL)机器码详解
- [ATL/WTL]_[中级]_[原生的复选框(checkbox button)和单选按钮(radio button)实现透明背景效果解决方案]
- final 参数的测试
- ubuntu下禁止TeamViewer开机自启分析
- iOS 选择头像后显示到imageView中 纯代码
- java日期和时间
- chapter 9 ICMP
- 多线程之同步和死锁
- scorllView和手势小细节
- 自定义maven工程模板
- 第一周工作报告总结 贺磊
- Python中正则表达式的应用
- VC内存对齐准则(Memory alignment)