這個是簡單的UIButton按鈕動畫效果案例,源碼,簡單的UIButton按鈕動畫,可以自定義button屬性。 效果圖:
使用方法:
使用時把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
新聞熱點
疑難解答