var delegate = plus.ios.implements('UIImagePickerController',{
'imagePickerController:didFinishPickingMediaWithInfo:':function(picker,info){
plus.ios.invoke(appRootController,'dismissViewControllerAnimated:completion:','YES',function(){
var fm = plus.ios.newObject("NSFileManager");
var path = plus.io.PRIVATE_DOC+"/video_xx001.mov";
var resource = info.plusGetAttribute("UIImagePickerControllerMediaURL");
plus.ios.invoke("NSURL","fileURLWithPath:",path);
plus.ios.invoke(fm,"copyItemAtURL:toURL:error:",resource,path,null)
});
}
});
有没有其他的解决方案javascript:;
首席劝退师
- 发布:2018-08-29 22:40
- 更新:2018-09-03 13:01
- 阅读:1318
首席劝退师 (作者)
什么意思
2018-08-30 00:03