SearchBar Transitions

Discussion in 'iOS Development' started by iKooshy, Apr 27, 2010.

  1. iKooshy

    iKooshy New Member

    Joined:
    Apr 26, 2010
    Messages:
    2
    Likes Received:
    0
    Is there any possibility of making the search button on the keyboard of a search bar hide the search bar after search is complete?
    Any ideas?
  2. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    Yeah. Just hide the search bar.
    When your search bar delegate method is called, I'd suggest you "slide" it out (move its center up 45 pixels or assign a transform that does so) and adjust the frame of your other views appropriately. After the animation is finished (you can set up delegate methods for that, too), remove (and potentially release) the bar.

Share This Page