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
对于runtime机制,在网上找到的资料大概就是怎么去用这些东西,以及查看runtime.h头文件中的实现,当然这确实是一种很好的学习方法,但是,其实我们还是不会知道runtime底层编译成C++语言之后做了什么? 查到一个...
分类:
移动开发 时间:
2014-08-04 02:08:36
阅读次数:
244
现在的msdn文档,还找不到详细的wp8.1的摄像头拍照文档,只有一个序列拍照,类似九连拍的文档,而且这文档感觉就是windows8.1搬过来应付的,wp8.1模式,只要有一个地方处理不好,手机就会死机,只能拆电池重启了,做开发现在是想砸电脑的感觉,我昨天拆了接近三十次电池,你知道820手机...
分类:
其他好文 时间:
2014-08-03 23:04:16
阅读次数:
283
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
Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?...
分类:
其他好文 时间:
2014-08-02 12:53:53
阅读次数:
289
@Retention(RetentionPolicy.RUNTIME)//@Retention元注释说明该注释存活期间在运行期间
@Target({ElementType.TYPE,ElementType.METHOD})//@Target元注释说明该注释适用于类接口枚举和方法上
public@interfacemyAnnotation{
//为注释定义属性
Stringname()default"ztt";//de..
分类:
其他好文 时间:
2014-08-02 07:47:03
阅读次数:
246
如果出现了上述的错误按照如下的3个步骤解决:1、首先关闭MyEclipse工作空间。2、然后删除工作空间下的“/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”这个文件。在这个文件中存储了一些部署项目的信息。删了这个部署..
分类:
Web程序 时间:
2014-08-01 20:22:23
阅读次数:
281
过去的几年中涌现了大量的Objective-C开发者。有些是从动态语言转过来的,比如Ruby或Python,有些是从强类型语言转过来的,如Java或C#,当然也有直接以Objective-C作为入门语言的。也就是说有很大一部分开发者都没有使用Objective-C太长时间。当你接触一门新语言时,更多...
分类:
移动开发 时间:
2014-08-01 18:48:02
阅读次数:
335