AssemblyInfo.cs文件:包含程序版本、信息、版权的属性文件先介绍AssemblyInfo.cs文件中的程序集属性内容:using System.Reflection; using System.Runtime.CompilerServices;[assembly: AssemblyTit...
分类:
其他好文 时间:
2014-08-05 14:00:59
阅读次数:
242
给UIScrollView添加category实现UIScrollView的轮播效果大家都知道,要给category添加属性是必须通过runtime来实现的,本教程中给UIScrollView添加category添加了好几个属性,也是通过runtime来实现的.实现后的效果如下:UIScrollVi...
分类:
其他好文 时间:
2014-08-05 09:31:48
阅读次数:
430
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System;using System.IO;using System.Runtime.InteropServices;us...
分类:
其他好文 时间:
2014-08-05 00:22:48
阅读次数:
210
1.简单单例模式:只能实例化一次的对象也就可以使用“对象字面量”的定义方式来实现:var singleton = { attribute:'', method:function(){}}这样定义的对象,不能使用new singleton的方式来生成另外的对象(不存在prototype和const.....
分类:
编程语言 时间:
2014-08-05 00:03:58
阅读次数:
288
- (float)width:(NSString *)str font:(UIFont *)font{ NSDictionary *attribute = @{NSFontAttributeName:font}; CGSize size = [str boundingRectWi...
分类:
移动开发 时间:
2014-08-04 17:17:27
阅读次数:
208
对于runtime机制,在网上找到的资料大概就是怎么去用这些东西,以及查看runtime.h头文件中的实现,当然这确实是一种很好的学习方法,但是,其实我们还是不会知道runtime底层编译成C++语言之后做了什么? 查到一个...
分类:
移动开发 时间:
2014-08-04 02:08:36
阅读次数:
244
attribute:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using ServiceStack.Redis;namespace Red...
分类:
其他好文 时间:
2014-08-04 01:55:36
阅读次数:
276
现在的msdn文档,还找不到详细的wp8.1的摄像头拍照文档,只有一个序列拍照,类似九连拍的文档,而且这文档感觉就是windows8.1搬过来应付的,wp8.1模式,只要有一个地方处理不好,手机就会死机,只能拆电池重启了,做开发现在是想砸电脑的感觉,我昨天拆了接近三十次电池,你知道820手机...
分类:
其他好文 时间:
2014-08-03 23:04:16
阅读次数:
283
特性Attribute概述 特性(Attribute)是一种特殊的类型,可以加载到程序集或者程序集的类型上,这些类型包括模块、类、接口、结构、构造函数、方法、字段等,加载了特性的类型称之为特性的目标。这里为与属性(Property)区分,所以称之为特性(Attribute)。特性是为程序集添加元数据...
分类:
Web程序 时间:
2014-08-03 17:55:15
阅读次数:
310
Give two versions of WA code:
Version 1: Runtime Error: Find the bug
class Solution {
public:
void find(const string& s, const unordered_set& dict, vector& res) {
int i, j, len = s.length();
...
分类:
其他好文 时间:
2014-08-03 15:21:27
阅读次数:
329