欢迎访问移动开发之家(rcyd.net),关注移动开发教程。移动开发之家  移动开发问答|  每日更新
页面位置 : > > > 内容正文

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

来源: 开发者 投稿于  被查看 43542 次 评论:39

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


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

用户评论