摘要: c++ 单例classCSingleton{private:CSingleton() {} //构造函数是私有的staticCSingleton*m_pInstance;public:staticCSingleton*GetInstance() {if(m_pInstance==NULL)//判断是... 阅读全文
posted @ 2015-10-29 15:59 XZoscar 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 定义如下分类 x y, 具有相同的函数helloworld@interface UIImage (x)- (void)helloworld;@end@implementation UIImage (x)- (void)helloworld { NSLog(@"helloworld-A");}@end... 阅读全文
posted @ 2015-10-29 09:47 XZoscar 阅读(176) 评论(0) 推荐(0) 编辑