摘要: //// Singleton.h// singleton//// Created by leondun on 11-4-20.// Copyright 2011 leondun. All rights reserved.// #import <Foundation/Foundation.h> @interface Singleton : NSObject { } +(Singleton *)getInstance; @end#import "Singleton.h" static Singleton * instance = nil; @interface Si 阅读全文
posted @ 2012-06-16 13:39 我的程序人生 阅读(239) 评论(0) 推荐(0) 编辑
摘要: [iOS] 引用外部静态库时,目录方法无法加载问题这个 bug 在 xcode 4.3 以下会出现,4.3 以后已经修正了。解决方法为:找到 target 的图标,更改其 Other Linker Flags 为: -all_load 或 -force_load-force_load,后跟随一个文件位置,可以更精确地加载所需文件。苹果的解释为 :http://developer.apple.com/library/mac/#qa/qa1490/_index.html简单点说就是,Objective-C 的动态特性使得需要,为链接器添加一个标签(设置 Other Linker Flags 为 - 阅读全文
posted @ 2012-06-16 11:50 我的程序人生 阅读(2291) 评论(0) 推荐(0) 编辑