摘要: Xcode6 默认工程配置 :Architectures : armv7,arm64 Valid Architectures : arm64 armv7 armv7s如此,最终编译出的app 架构(指令集)是armv7 arm64, 是没有armv7s的。另 据说apple cpu 指令集是向下兼容... 阅读全文
posted @ 2015-10-30 10:22 XZoscar 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 2015-09-26MVC 模型-视图-控制器,这个设计模式的目的很明确 让View层和Model层 独立起来、解耦合然而这个概念在我们的代码中已经被滥用或是错用了,因为我看到的 仅仅是从项目的工程目录结构上 分个文件夹,他们是这样做的:(1)把数据结构相关类放到Model文件夹中(仅仅是做数据结构... 阅读全文
posted @ 2015-09-26 18:52 XZoscar 阅读(169) 评论(0) 推荐(0) 编辑