Coocoo4Cocoa
Coocoo4Cocoa

Reputation: 50826

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?

Upvotes: 11

Views: 3704

Answers (3)

Panagiotis Korros
Panagiotis Korros

Reputation: 11050

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.

Upvotes: 5

Chris Kimpton
Chris Kimpton

Reputation: 5541

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

Upvotes: 4

acreek
acreek

Reputation: 325

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

Upvotes: 1

Related Questions