开发者

Hide search box on iPhone

开发者 https://www.devze.com 2023-01-05 19:32 出处:网络
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

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

精彩评论

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