iOS 调用相册
来源:互联网 发布:java web访问量统计 编辑:程序博客网 时间:2024/05/02 13:20
- 选中某个图片后,显示出来。
- - (void)showPicker
- {
- UIImagePickerController *picker = [[UIImagePickerController alloc] init];
- picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
- picker.delegate = self;
- [self presentModalViewController:picker animated:YES];
- [picker release];
- }
- // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- - (void)viewDidLoad {
- [super viewDidLoad];
- UIButton *button = [UIButton buttonWithType: UIButtonTypeRoundedRect];
- button.frame = CGRectMake(10.0f, 60.0f, 120.0f, 30.0f);
- [button setTitle: @"Picker" forState: UIControlStateNormal];
- [button addTarget: self action: @selector(showPicker) forControlEvents: UIControlEventTouchUpInside];
- [self.view addSubview: button];
- m_imageView = [[UIImageView alloc] initWithImage: nil];
- m_imageView.frame = CGRectMake(120.0f, 120.0f, 60.0f, 60.0f);
- [self.view addSubview: m_imageView];
- }
- #pragma mark delegate
- - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)aImage editingInfo:(NSDictionary *)editingInfo
- {
- m_imageView.image = aImage;
- [picker dismissModalViewControllerAnimated:YES];
- }
0 0
- iOS 调用相册
- ios之相册调用
- iOS调用相册、相机、上传
- iOS调用相册和摄像头
- ios调用相册和摄像头
- iOS调用相册和摄像头
- iOS 图片相册调用封装
- iOS调用相册和摄像头
- iOS--调用相机和相册
- 有关iOS相册的调用
- IOS 调用照相机、相册功能
- iOS 10调用相机相册
- ios调用相册或相机上传图片
- ios中调用本地通讯录和相册
- iOS调用相册、相机、上传等问题
- iOS调用相册、相机、上传等问题
- IOS调用相机相册(1)
- iOS 相册 相机的调用及上传
- Map线程安全几种实现方法[转]
- POJ1006 - Biorhythms - 中国剩余定理
- Java解析XML文件的两种方式详解
- 自定义应用程序配置文件(app.config)
- 简单容斥
- iOS 调用相册
- 情人节约会聚餐必备手机订餐app【排队美食】
- 关于const 限定符
- 76_popup窗体的动画效果
- 合肥华为HCDP培训认证要多少钱?哪家培训机构好??
- 法国获得国家的骨灰级的规划规划局规划局
- IOS 解决键盘挡住输入框的问题
- AndroidStudio0.8.1集成.so文件
- java操作生成jar包 和写入jar包