I am not able to use static library
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 ne开发者_StackOverflow中文版w project's view. Please help me out of this.
Here are simple steps:
- Drag drop the static lib to your project.
- Remember to check Relative to project while copying.
- Import classes in header files.
- Write name of your class in Target settings/Header Search Path.
- Add some flags like -ObjC and -all_Load if needed.
- Instantiate the necessary objects.
精彩评论