今天遇到一个用户头像上传的问题,需要从相册或者相机中读取图片。代码很简单,抽取关键部分,如下://load user image- (void)UesrImageClicked{ UIActionSheet *sheet; // 判断是否支持相机 if([UIImagePi...
分类:
移动开发 时间:
2016-01-21 18:31:08
阅读次数:
195
动态应用,是相对于网站静态内容而言,是指以c/c++、php、Java、perl、.net等服务器端语言开发的网络应用软件,比如论坛、网络相册、交友、BLOG等常见应用。动态应用系统通常与数据库系统、缓存系统、分布式存储系统等密不可分。大型动态应用系统平台主要是针对于大流量、高并发网站建立的底层系统...
分类:
Web程序 时间:
2016-01-14 19:02:35
阅读次数:
168
__weak ViewController *weakSelf = self; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ ALAssetsLibrary...
分类:
移动开发 时间:
2016-01-13 23:20:21
阅读次数:
197
#import "ViewController.h"#import "YZUIScrollView.h"#define kuan ([UIScreen mainScreen].bounds.size.width+20)#define gao [UIScreen mainScreen].bounds....
分类:
移动开发 时间:
2016-01-13 21:52:03
阅读次数:
296
/** * 将uri转换成字符串 * 解决4.4版本以上获取到的uri是图片名称而非图片路径,导致剪裁图片时提示无法加载图片的问题 * 详细的解决方案,请参考这篇文章 * 当安卓的版本比较高时(如4.4),选择本地相册可能会返回“无法加载此图片” * 原因:...
分类:
其他好文 时间:
2016-01-13 10:34:24
阅读次数:
262
原地址:http://blog.csdn.net/djcken/article/details/46379929解决这个问题花了很长时间搜索了解,网上大部分使用openFileChooser但都没解决一个存在的问题。就是当弹出选择图片/相机框之后,取消选择,就再也不能点击选择按钮了。这篇文章是为了记...
分类:
移动开发 时间:
2016-01-13 10:31:37
阅读次数:
365
#import"ViewController.h"#definekuan[UIScreenmainScreen].bounds.size.width#definegao[UIScreenmainScreen].bounds.size.height@interfaceViewController()<UIScrollViewDelegate>@property(weak,nonatomic)IBOutletUIScrollView*huaKuang;@end@implementationViewCo..
分类:
移动开发 时间:
2016-01-13 00:52:00
阅读次数:
375
最近的项目中运用到了这两个功能,所以记录一下。做了一个小工程将两个方法结合到了一起1- (void)viewDidLoad { [super viewDidLoad]; UIButton * btn = [UIButton buttonWithType:UIButtonTypeConta...
分类:
移动开发 时间:
2016-01-12 23:09:44
阅读次数:
197
AVAuthorizationStatus state = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; //获取相机的访问权限四种枚举 值。AVAuthorizationStatusNotDetermined...
分类:
其他好文 时间:
2016-01-12 23:07:22
阅读次数:
271
#import "ViewController.h"#define kuan [UIScreen mainScreen].bounds.size.width#define gao [UIScreen mainScreen].bounds.size.height@interface ViewContr...
分类:
移动开发 时间:
2016-01-12 23:06:11
阅读次数:
377