HTML代码: HTML中用JS调用OC方法 打开相机 打开相册 #OBJECT-C[objc]view plaincopy-(BOOL)webView:(UIWebView*)webViewshouldStartLoad...
分类:
Web程序 时间:
2015-06-05 19:07:08
阅读次数:
126
应用中有时我们会有保存图片的需求,如利用UIImagePickerController用IOS设备内置的相机拍照,或是有时我们在应用程序中利用UIKit的 UIGraphicsBeginImageContext,UIGraphicsEndImageContext,UIGraphicsGetImage...
分类:
移动开发 时间:
2015-06-05 13:49:06
阅读次数:
144
需要先导入头文件#import ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus]; if( author == ALAuthorizationStatusRestricted || author == ALAu....
分类:
其他好文 时间:
2015-06-04 00:44:31
阅读次数:
126
下面是笔者在使用使用UIImagePickerController的相册选择这个功能时,遇到了下面的问题: 那么笔者是怎么解决这个问题的呢?首先打开你的模拟器的的照片这个应用,再把照片拖进去照片这个应用,而不是直接把你的照...
分类:
其他好文 时间:
2015-06-03 23:38:36
阅读次数:
398
AVAuthorizationStatus state = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; //获取相机的访问权限四种枚举 值。AVAuthorizationStatusNotDetermined...
分类:
移动开发 时间:
2015-06-03 21:09:30
阅读次数:
126
最近做一个聊天的项目,需要发送图片后读取本地图片显示到列表里。刚开始的时候,天真的认为可以用SDWebImage直接加载,然后并不能行。于是在网上搜了搜,如何根据从相册获取的UIImagePickerControllerReferenceURL读取图片, 代码如下:#import "ViewCont...
分类:
移动开发 时间:
2015-06-03 13:34:21
阅读次数:
514
1 package zhangpgil.photo; 2 3 import java.io.File; 4 import android.support.v7.app.ActionBarActivity; 5 import android.view.View; 6 import a...
分类:
移动开发 时间:
2015-06-03 13:10:34
阅读次数:
151
启动系统相册Intent i = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(i, R...
分类:
其他好文 时间:
2015-06-03 11:22:24
阅读次数:
145
在qq空间或者微信朋友圈里 看到图片总会点击图片进行查看,图片放大缩小功能包括通过手势放大缩小旋转以及双击放大缩小,并且可以左右滑动看到前一张图片或者后一张图片,需要该功能的话,这篇文章或许可以给你帮助。
众所周知,imageloader异步加载图片,不仅可以快速加载图片,而且还可以将图片保存到sdk缓存中,因此下载图片用imageloader即可,如有不懂的,可简单看下我的这篇...
分类:
其他好文 时间:
2015-06-02 18:08:17
阅读次数:
148
package com.example.showgetpic;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import android.R.integer;
import android.content.Context;
import and...
分类:
其他好文 时间:
2015-06-02 17:55:42
阅读次数:
96