I have a UISearchBar as a subview of a UIViewController's view. The UIViewController has a navigation bar. When I touch on the UISearchBar, I initiate an animation that moves the navigation bar up and off of the screen and move the search bar up to be in place of the navigation bar.
When I do this, the cancel button belonging to the search bar does not send touch events to the search bar's delegate. When I move the search bar up a few pixels, the search bar cancel button still works.
Any suggestions on what I might be doing wrong?