Take the 2-minute tour ×

I just started learning iPhone development and i am stuck at this point. My problem is as follows:

I need a text box with autocomplete functionality several times in my project. So i created a static library which contains a viewController and in it a text box and a table(hidden, but shown when user types). I have added the text-box and table manually through coding. And just connect the view to Files Owner. The xib contains nothing else but view. Now i want to use it in my project at many places. So I created a simple view-based application project and included my static library in it. But i dont know how do i use the text box or view on my new project's view. Please help me out of this.

share|improve this question
Do you have the header files for your library? –  Praveen S Sep 9 '11 at 5:47
add comment

1 Answer

up vote 1 down vote accepted

Here are simple steps: 1.Drag drop the static lib to your project. 2. Remember to check Relative to project while copying. 3. Import classes in header files. 4. Write name of your class in Target settiings/Header Search Path. 5. Add some flags like -ObjC and -all_Load if needed. 6. Instantiate tne necessary objects

share|improve this answer
thanks. done that successfully. :-) –  Madhura Sep 19 '11 at 5:44
add comment

Your Answer


