摘要: came from:http://qing.weibo.com/tj/5d4a5ca3330010rw.html关于变量的作用域@protected—Methods defined in the class and any subclasses can directly access the instance variables that follow.This is the default case.该类和所有的子类中的方法可以直接访问这样的变量,这是默认的。@private—Methods defined in the class can directly access the insta 阅读全文
posted @ 2012-05-10 16:30 印错版的RMB 阅读(699) 评论(0) 推荐(0) 编辑
摘要: came from:http://marshal.easymorse.com/tech/objc-%E4%BD%BF%E7%94%A8kvcKVC是什么?即:Key-Value Coding,直译是:键值编码。还是没明白什么意思?先看看下面的代码。Book类的代码,头文件:#import <Foundation/Foundation.h>@interface Book : NSObject { NSString *name;}@end实现文件:#import "Book.h"@implementation Book@end这个Book类太简单了,只有一个实例变量 阅读全文
posted @ 2012-05-10 15:32 印错版的RMB 阅读(195) 评论(0) 推荐(0) 编辑