随笔分类 -  objC

Objective-C
摘要:1. 建立一个C++类2. 写一个Adaptor的Objective-C类3. 在其他Objective-C的逻辑中调用Adaptor类。1.C++类//// CPlusPlusClass.h// OBJ_C++//// Created by Txtw on 13-7-2.// Copyright (c) 2013年 Txtw. All rights reserved.//#ifndef __OBJ_C____CPlusPlusClass__#define __OBJ_C____CPlusPlusClass__#include class CPlusPlusClass {public:... 阅读全文
posted @ 2013-07-02 12:01 superchao 阅读(956) 评论(0) 推荐(0)
摘要:From:http://www.cocoachina.com/bbs/read.php?tid=107251@synthesize 可以不用再写了如果在.h文件里有?1@propery NSObject * aProperty那么可以认为 编译器会类似在.m文件里生成?1@synthesize aProperty = _aProperty如果上面的都不认识 就可以认为 以下代码?123456789@interface Spouce:NSObject@property (strong) NSObject * child@end@implementSpouce@end和下面的代码没有太大区别(如果 阅读全文
posted @ 2012-10-10 09:38 superchao 阅读(171) 评论(0) 推荐(0)