首页 > 学院 > 开发设计 > 正文

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

2019-11-14 19:47:13
字体:
来源:转载
供稿:网友

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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表