Note that there are some explanatory texts on larger screens.

plurals
  1. POA Guide for Creating your own Library for Cocoa(touch) development
    primarykey
    data
    text
    <p>I'm currently using a lot of the same subclassed objects with custom methods. It would be more convenient to <strong>create my own library which I can use for several projects</strong>. </p> <p>The goal is to have my own classes being available in the same way classes like <code>UIView</code>, <code>CGRect</code> etc are, including convenient methods like <code>CGRectMake</code>, both with classes and structs. To sum it up, I want to create my own equivalents of:</p> <ul> <li>Classes like <code>UIView</code> </li> <li>Structs like <code>CGRect</code></li> <li>Convenient functions like <code>CGRectMake</code></li> <li>Have this available as a library</li> <li>Have this available as an XCode template, thus, having these custom Objects available as 'new files' in XCode</li> </ul> <p>So basically I'm looking for instructions on how to create classes, structs etc in order to create all the above. <strong>What is the best way to do this?</strong> The <a href="http://joehewitt.com/post/the-three20-project/" rel="noreferrer">320 project</a> seems like a good starting point. But it lacks (I think) in:</p> <ul> <li>having the library available in new projects right away</li> <li>having the new classes available under 'new file'</li> </ul> <p>Even if I would create an own static library, <strong>will I be able to release the app on the app store</strong>, since linking to 3rd party libraries is not supported on the phone?</p> <p>For your convenience, these are basically the sub questions, covering the scope of this question:</p> <ul> <li><strong>How can I create my own library for Mac / iPhone development?</strong></li> <li><strong>How do I create classes, structs and inline function for this library?</strong></li> <li><strong>How do I create my own Xcode template based on this library?</strong></li> <li><strong>Will I be able to release iPhone apps using my own static library?</strong></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload