#import "AViewController.h"@interface AViewController () @end@implementation AViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(N.....
分类:
其他好文 时间:
2015-03-30 22:28:00
阅读次数:
300
今天在使用协议的过程中,偶然发现这样使用
@interface AppDelegate (){
id testdelegate;
}
@property (nonatomic , assign) id testdelegate;
@end
@implementation AppDelegate
@synthesize testdelegate;
会报错:
Existing i...
分类:
移动开发 时间:
2015-03-30 16:34:21
阅读次数:
150
消息机制 调用一个实例(instance)的方法(method),就是向该实例的指针发送消息(message),实例收到消息后,从自身的实现(implementation)中寻找响应这条消息的方法。id id myObject;声明了一个指针,类型是id,id表示它是一个指针(不用id *)指向.....
分类:
其他好文 时间:
2015-03-29 23:28:03
阅读次数:
169
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *remindLabel;@end@implementation ViewController- (v...
分类:
编程语言 时间:
2015-03-29 17:56:08
阅读次数:
142
Abstract. PostgreSQL is an excellent implementation of relational database, fully featured, open source, and free to use. Nearly nontrivial computer a...
分类:
数据库 时间:
2015-03-28 15:44:47
阅读次数:
320
1)Objective-C的类定义包含两个部分,一是类接口的声明,二是类方法的实现。2)所有的 Objective-C的所有编译指示都以@打头。a)类接口以@interface开始以@end结束。b)类的实现以@implementation开始以@end结束。c)每个实现文件必须包含它自己对应的接口...
分类:
移动开发 时间:
2015-03-28 10:04:12
阅读次数:
144
说明:本人用的win8 系统装Code::Blocks练习OC。1.类的声明和实现的关系图:@interface就好像暴露在外面的时钟表面@implementation就好像隐藏在时钟内部的构造实现2.语法中要注意的地方(1).成员变量不能在{}中进行初始化、不能被直接拿出去訪问(2).方法不能当做...
分类:
其他好文 时间:
2015-03-20 20:09:48
阅读次数:
219
最近在android4.4升5.0的项目中,经常遇到java.lang.UnsatisfiedLinkError: No implementation found for的问题,出现这个问题主要是因为MTK或高通5.0的框架代码相比于4.4有了很大的改变,尤其是它的jni库等都发生了变化,出现这个错...
分类:
编程语言 时间:
2015-03-20 18:14:10
阅读次数:
178
单例模式是开发中最常用的写法之一,iOS的单例模式有两种官方写法,如下:不使用GCD#import "ServiceManager.h"static ServiceManager *defaultManager;@implementation ServiceManager+(ServiceManag...
分类:
移动开发 时间:
2015-03-20 18:10:59
阅读次数:
142
查看现有项目的struts和hibernate和spring版本1. 查看 struts.jar/META-INF/MANIFEST.MF再查看 Implementation-Version看后面的数字..Manifest-Version: 1.0Specification-Title: Strut...
分类:
其他好文 时间:
2015-03-19 17:56:08
阅读次数:
179