iPhone - multiple text field search bar -


I am implementing a location-based keyword search if someone has seen the search bar of Yelp, I am trying to Basically once the search bar is clicked I want to provide a text field input for the keyword and the other for the location. Will the UI element sub-class? How would I go about it?

I did a similar app some time ago.
I did what I did in my app, these steps were followed (I do not give a brief description which is not part of the code):

Initial format: < / P>

  • I inserted a search bar in a navigation bar. (I programmed it in my code's viewDidLoad ).
  • In my xib file of this class, I placed a view on top and under two UITextFields one under the other I hid the scene and from the height of the scene my Y coordinate So that they become - (viewHyight) .

Functionality part

  • Search Bar in the Representative Bar, - Search (BOOL) SearchBarginBeginEditing: (UISearchBar *) searchBar I Not back, animation part (mentioned

  • I made my first text field the first reply The keyboard will automatically appear.

  • Now, when I am done after filling data in both text fields, I reverse the animation and in the search field

  • Hope this helps.


    Comments

    Popular posts from this blog

    c# - How to capture HTTP packet with SharpPcap -

    php - Multiple Select with Explode: only returns the word "Array" -

    jquery - SimpleModal Confirm fails to submit form -