常见问题@interface@end和@implementation@end不能嵌套包含只有类的声明没有类的实现漏写@end两个类的声明嵌套(可以把顺序打乱)成员变量没有写在{}里方法的声明写在了{}里面方法无法像函数那样的调用成员变量和方法不能用static等关键字修饰,不要和c语言混淆类的实现可...
分类:
移动开发 时间:
2014-12-27 11:17:07
阅读次数:
187
摘要:
记录了一些关于Java反射的知识、最重要的是对Class这个类的理解、熟悉反射相关的几个类、通过代码示例加深对Java底层的一些东西的理解。...
分类:
编程语言 时间:
2014-12-26 21:43:38
阅读次数:
268
今天,在项目中遇到一个问题,情况是这样的:在一个项目中,我配置了一个用以处理任务的工厂类,然后将这个工厂类注入到其他的service类中进行使用。在Spring中的配置如下:...
分类:
编程语言 时间:
2014-12-26 14:38:04
阅读次数:
138
In parts 1-3 of this series, I have explored three different means for an Android non-UI thread to communicate user interface updates to the UI thread...
分类:
移动开发 时间:
2014-12-26 14:32:02
阅读次数:
310
FastCGI简介 CGI全称是“通用网关接口”(Common Gateway Interface), 它可以让一个客户端,从网页浏览器向执行在Web服务器上的程序请求数据。 CGI描述了客户端和这个程序之间传输数据的一种标准。 CGI的一个目的...
分类:
其他好文 时间:
2014-12-26 13:12:32
阅读次数:
256
Events, Protocols and Delegates 事件、协议和委托This article presents the key iOS technologies used to receive callbacks and to populate user interface contr....
分类:
其他好文 时间:
2014-12-26 12:59:44
阅读次数:
291
效果图:工程图:代码:#import "ViewController.h"//加入头文件#import "VWWWaterView.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad ...
分类:
其他好文 时间:
2014-12-26 11:01:34
阅读次数:
117
接口 认为是一个特殊的抽象类 当抽象类的中的方法 都是抽象的 那么该类可以通过接口的形式来表示interface interface 接口 class 定义类 interface 定义接口 接口 里的成员 全部是抽象的 接口的中常见的定义 常量;public static fianl方法:...
分类:
其他好文 时间:
2014-12-25 20:24:58
阅读次数:
213
1.新建一个single?view?application
2.打开?Info.plist,删除里面的??Launch?screen?interface?file....以及?Main?storyboard?file?base?name...
3.删除Main.storyboard以及LaunchScreen.xib
4.在A...
分类:
其他好文 时间:
2014-12-25 18:55:31
阅读次数:
182