Hide search box on iPhone
I have a search box, and a button. I want to slide the searc开发者_如何学Pythonh 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?
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.
精彩评论