Reputation: 871
I have a search box, and a button. I want to slide the search box up and off screen to make a nice sliding effect for hiding/showing the search box when someone clicks the button. Is there a way to do this smoothly?
Upvotes: 0
Views: 533
Reputation: 8114
Look for the UIView animations and change the frame origin of serachbar from 0 to -44 in the animation block and your job is done.
Upvotes: 1