Search code examples
iphoneobjective-cxcodeprogrammatically-created

how to add textfield and button programmatically?


I have a tableView and I want to apply search facility on tableView. For that I require textField and search Button but I don't know how to create these programmatically. so plz tell me how to create these two tools.

thanx.


Solution

  • Try with the following link which describes for asynchronous scrollbar example

    http://blog.patrickcrosby.com/2010/04/27/iphone-ipad-uisearchbar-uisearchdisplaycontroller-asynchronous-example.html

    But you can also refer the previous post UISearchBar Sample Code

    For more methods of implementing and getting results as you type, go to apples document and refer UISearchBarDelegate Protocol Methods