Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop distributable UI controls for iPhone?

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.

like image 802
subjective-c Avatar asked Jan 05 '09 23:01

subjective-c


3 Answers

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)

like image 131
Marc Novakowski Avatar answered Nov 18 '22 18:11

Marc Novakowski


You have two options:

  1. Supply the full source code. Other developers can then add it directly to their app.
  2. 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.

like image 2
Mike Abdullah Avatar answered Nov 18 '22 19:11

Mike Abdullah


You probably want to provide custom Interface Builder objects, or maybe source code libraries.

like image 2
Michael Pryor Avatar answered Nov 18 '22 18:11

Michael Pryor