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

这个是简单的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

原文地址:https://www.cnblogs.com/huasili/p/4152496.html