开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜