Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UISearchBar Animation

It's common to see a UISearchBar in an application, that upon a click, will enlarge and animate into view with a keyboard. I'm curious, is this something the iPhone SDK provides for free, or is the Animation code more than likely written by the developer? I use a UISearchBar in several controllers, however by default a keyboard just pops into view, the search bar does not animate in any fashion. This is also very prominent in apps that have a search icon. How is it typically done?

like image 239
Coocoo4Cocoa Avatar asked Dec 10 '08 21:12

Coocoo4Cocoa


3 Answers

This can be easily implemented using the UISearchDisplayController using the iPhone SDK 3.0 and above.

See the TableSearch example project, included in the SDK.

like image 197
Panagiotis Korros Avatar answered Nov 07 '22 08:11

Panagiotis Korros


There is a discussion "UISearchBar like Contacts" on this at the apple site.

like image 37
Chris Kimpton Avatar answered Nov 07 '22 09:11

Chris Kimpton


Did you put it in through Interface Builder or programatically? Because by default the keyboard animation should play.

like image 39
acreek Avatar answered Nov 07 '22 09:11

acreek