·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> app软件开发 >> IOS开发 >> 简单的UIButton按钮动画效果iOS源码

简单的UIButton按钮动画效果iOS源码

作者:佚名      IOS开发编辑:admin      更新时间:2022-07-23

这个是简单的UIButton按钮动画效果案例,源码,简单的UIButton按钮动画,可以自定义button属性。 效果图:

  • <ignore_js_op> 


使用方法:


使用时把ButtonAnimations.h 和.m文件导入新工程即可 

ButtonAnimations *btView = [[ButtonAnimations alloc] initWithFrame:CGRectMake(10, 150, self.view.bounds.size.width, 80)]; 
     
    [self.view addSubview:btView]; 
     
    [btView setNeedsDisplay:@[@"50",@"100",@"200"]]; 
     
     
    [btView sendCar:^(NSString *sendType, NSString *sendPRice) { 
        NSLog(@"sendType:%@ sendPrice:%@",sendType, sendPrice); 
    }];

 

详细说明:http://ios.662p.com/thread-2272-1-1.html