UIImagePickerController属性与使用
来源:互联网 发布:魔兽数据库7.3 编辑:程序博客网 时间:2024/05/18 02:19
1. sourceType 照片选择控制器的源类型,默认是
UIImagePickerControllerSourceTypePhotoLibrary。
UIImagePickerController*imagePicker = [[UIImagePickerController alloc]init];
[imagePickersetSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
2. allowsEditing 是否允许编辑,默认为NO
[imagePickersetAllowsEditing:YES];
3. delegate 代理属性
- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info;
选择图片后执行的方法
- (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker;
注意,需要设置代理
@interface WJImagePickerController()<UINavigationControllerDelegate,UIImagePickerControllerDelegate]]>
UIImagePickerControllerSourceTypePhotoLibrary。
UIImagePickerController*imagePicker = [[UIImagePickerController alloc]init];
[imagePickersetSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
2. allowsEditing 是否允许编辑,默认为NO
[imagePickersetAllowsEditing:YES];
3. delegate 代理属性
- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info;
选择图片后执行的方法
- (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker;
注意,需要设置代理
@interface WJImagePickerController()<UINavigationControllerDelegate,UIImagePickerControllerDelegate]]>
4. 效果截图
- UIImagePickerController属性与使用
- 使用UIImagePickerController
- UIImagePickerController使用
- UIImagePickerController使用
- UIImagePickerController使用
- UIImagePickerController使用
- UIImagePickerController使用
- UIImagePickerController使用
- UIImagePickerController使用
- UIImagePickerController使用
- iOS开发 关于UIImagePickerController 属性
- UIImagePickerController拍照与摄像
- UIImagePickerController拍照与摄像
- UIImagePickerController拍照与摄像
- UIImagePickerController拍照与摄像
- UIImagePickerController拍照与摄像
- UIImagePickerController拍照与摄像
- UIImagePickerController拍照与摄像
- Stroke example for CCLabelTTF and CCSprite.
- Redis入门
- LCA(最近公共祖先)问题的新老解法对比
- 依旧高精度
- eclipse 设置默认编码为Utf-8
- UIImagePickerController属性与使用
- textarea 禁止拉动兼容
- Keil C51对C语言的关键词扩展之十一: xdata
- C++基础知识回顾
- Hanoi(汉诺)塔问题
- wikioi 1013 求先序排列 普及组 2001
- Spring AOP(一)
- 推荐10款免费的在线UI测试工具
- c语言数字转字符串