简体   繁体   中英

Most efficent way to show a small animation above a button in ios?

Which i would like to embed within my iphone app above a field which includes a button which the user would press to sign up. Thanks in advance!! The rest of this text is to help increase the quality standard

You can do this kind of animation by using UIView animation:

[UIView animateWithDuration:0.5 animations:^{
     button.frame = CGRectMake(20, 10, 50, 10); // the final button frame
}];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM