I would like to develop a reusable UI control for iPhone. How should I go about doing this? When I say reusable I mean it's packaged in a dll (or whatever is used on iPhone platform) so it can be reused on multiple projects.
+2
A:
You probably want to provide custom Interface Builder objects, or maybe source code libraries.
Michael Pryor
2009-01-05 23:13:55
+5
A:
While dynamic libraries are not allowed to be used in iPhone applications that are to be sold on the iPhone App Store, here's a tutorial on building static libraries with the iPhone SDK. (assuming you don't want to release source code)
Marc Novakowski
2009-01-05 23:14:18
Thanks for this link. Exactly what I was thinking but didn't know how to do.
subjective-c
2009-01-06 17:08:13
+1
A:
Well, the Xcode way would be to bundle your code into a Framework and link to that. However, under the iPhone you can't link to non Apple approved frameworks (even if they are your own)
So you would probably have to link in the source to the reusable code. A good article here
KiwiBastard
2009-01-05 23:17:10
Does this mean that something like Rhodes is not permissible: http://rhomobile.com/wiki/index.php?title=Rhodes
Toby Hede
2009-01-05 23:39:18
NO it should work. From the FAQ: The iPhone development terms do not disallow interpreted languages. They disallow interpreting code that has been downloaded independent of both Apple's official distributions channels (i.e. not contained in the app bundle) and Apple's own code.
KiwiBastard
2009-01-05 23:47:59
+2
A:
You have two options:
- Supply the full source code. Other developers can then add it directly to their app.
- Distribute the compiled version of your code as a static library.
As you're planning to develop a UI control, I suggest you also develop an IB plugin and ship that with it too.
Mike Abdullah
2009-01-06 12:13:58