标签:
//定义了这个宏之后
#define CC_SYNTHESIZE_READONLY(varType, varName, funName)
protected: varType varName;
public: inline virtual varType get##funName(void) const { return varName; }
//执行下面语句
CC_SYNTHESIZE_READONLY(CANavigationController*, m_pRootNavigationController, RootNavigationController);
//相当于执行下面这个
protected:
CANavigationController* m_pRootNavigationController;
inline CANavigationController* getRootNavigationController(return m_pRootNavigationController;);
标签:
原文地址:http://www.cnblogs.com/xubopei/p/4632400.html