首先在绑定的时候进行转换: public class RegionConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, Syste...
分类:
其他好文 时间:
2014-07-02 22:36:41
阅读次数:
317
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.delegate = self; i...
分类:
其他好文 时间:
2014-07-02 22:03:44
阅读次数:
220
Ubuntu 下获得root 权限在终端中输入:sudo passwd rootEnter new UNIX password: (在这输入你的密码)Retype new UNIX password: (确定你输入的密码)passwd: password updated successfully以后...
分类:
其他好文 时间:
2014-07-02 21:30:47
阅读次数:
247
js 去除空格与换行//去除空格 String.prototype.Trim = function() { return this.replace(/\s+/g, ""); } //去除换行 function clearBr(key) { key = key.replace(//g,""...
分类:
Web程序 时间:
2014-07-02 21:16:23
阅读次数:
268
"Ran out of trampolines of type 0/1/2" 运行时间错误通常出现在使用大量递归泛型时。要看到这个错误需要连接着设备直接将项目build到设备里运行调试才能看到,您可以暗示 AOT 编译器分配更多type 0、type 1 或 type 2 trampolines。此...
分类:
移动开发 时间:
2014-07-02 21:15:05
阅读次数:
573
man是自定义的对象,使用var tim = JSON.stringify(man); var newman=JSON.parse(tim)后newman的类型是“object”并不是一个Man,怎么才能变回一个Man呢?
function Man() {
this._type = "man";
this.name="";
this.run = function () {...
分类:
编程语言 时间:
2014-07-02 09:51:34
阅读次数:
187
题目:最近点对(大数据)。
分析:分治法。首先,将所有点按很坐标排序;然后,利用分治求解。
1.将问题转化为两个相同大小的子区间分别求解;
2.中位点为中心,当前最小距离为半径的区间直接枚举求解;
3.求出上两中情况的最小值返回。
说明:这么经典的题目,今天第一次做。
#include
#include
#in...
分类:
其他好文 时间:
2014-07-02 09:41:14
阅读次数:
202