开发者

How to make reusable components/classes from existing iPhone project?

开发者 https://www.devze.com 2022-12-25 04:32 出处:网络
I on the doorstep of a new learning curve . I want to make reusable components / classes from my completed iphone project and with the mention of the following questions , If anyone want to redirect

I on the doorstep of a new learning curve .

I want to make reusable components / classes from my completed iphone project and with the mention of the following questions , If anyone want to redirect me to some useful reusa开发者_运维问答ble components or classes it will be useful to me .

And Also tell me which is the best way to make reusable classes or components ?

Is there a gallery of reusable iPhone components on the web?

https://stackoverflow.com/questions/640805/open-source-iphone-components-reusable-views-controllers-buttons-table-cells

https://stackoverflow.com/questions/200850/are-there-any-open-source-iphone-applications-around

Thanks .


To make a reusable library on the iPhone, you should create a new target of type "Cocoa Touch Static Library". Add the source files that will go to make up the library to this new target, and remove them from your application(s)'s target(s). Now add the new target as a dependency of each application target (Ctrl-click the app target, get info, add direct dependency) and also add the library product (called yourtargetname.a) to the "link libraries and frameworks" phase of the app.

0

精彩评论

暂无评论...
验证码 换一张
取 消