我是Objective-C的新手,但在Java和.NET方面有很多经验.
我正在尝试在Xcode 4.2.1 中将EGOPhotoViewer添加到我的iOS 5项目中.但是在编译代码时我得到了大量的发布,dealloc,保留等问题,因为我正在使用自动引用计数(我想!).
我如何创建一个类库,框架或它在Objective C中为其代码调用的内容,我可以添加到我的项目中?
编辑: 我已经通过插入新目标的代码完成了JeremyP的方法.我在开始编译,但过了一段时间我得到这个编译错误:
Undefined symbols for architecture i386:
"_OBJC_METACLASS_$_EGOPhotoViewController", referenced from:
_OBJC_METACLASS_$_PhotoViewController in PhotoViewController.o
"_OBJC_CLASS_$_EGOPhotoViewController", referenced from:
_OBJC_CLASS_$_PhotoViewController in PhotoViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
有人知道为什么吗?