UIImageView -- 选择图片

UIImageView -- 选择图片,第1张

概述UIImageView -- 选择图片

下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。

内存溢出小编现在分享给大家,也给大家做个参考。

- (voID)vIEwDIDLoad{    [super vIEwDIDLoad];              _imageVIEw = [[UIImageVIEw alloc] initWithFrame:CGRectMake(0,200,200)];    [self.vIEw addSubvIEw:_imageVIEw];    _imageVIEw.backgroundcolor = [UIcolor redcolor];    //         _imageVIEw.userInteractionEnabled = YES;         UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(choosePictrue)];    //tap.numberOfTapsrequired  = 2;    [_imageVIEw addGestureRecognizer:tap];    [tap release];    [_imageVIEw release];         } - (voID)choosePictrue{    UIImagePickerController *picc = [[UIImagePickerController alloc] init];    picc.delegate = self;    picc.sourceType = UIImagePickerControllerSourceTypePhotolibrary;    [self presentVIEwController:picc animated:YES completion:nil];    [picc release];} - (voID)imagePickerController:(UIImagePickerController *)picker dIDFinishPickingMediawithInfo:(NSDictionary *)info{    _imageVIEw.image = [info objectForKey:UIImagePickerControllerOriginalimage];    [picker dismissVIEwControllerAnimated:YES completion:nil];     } - (voID)imagePickerControllerDIDCancel:(UIImagePickerController *)picker{     [picker dismissVIEwControllerAnimated:YES completion:nil];}@end
@H_403_7@

以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

总结

以上是内存溢出为你收集整理的UIImageView -- 选择图片全部内容,希望文章能够帮你解决UIImageView -- 选择图片所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1107160.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存