ChooseMoney是一款选择金钱的并提供按钮功能的功能性视图。可以对源代码进行二次开发。适用于各种充值,购物,购买会员,P2P等等,简单易用
示例代码:
#pragma -添加一个选择money的视图 { RenewVipView *renewVIPView = [[RenewVipView alloc] init]; renewVIPView.frame = CGRectMake(0, 0, kMainScreenWidth, kMainScreenHeight); renewVIPView.delelgate = self; [bgScrollView addSubview:renewVIPView]; } #pragma -实现点击的代理方法 -(void)commitMoneyButtonClickWithMoneyCount:(NSString *)moneyCount { NSString *resultString = [NSString stringWithFormat:@"您选择的金额为:%@",moneyCount]; UIAlertView *alVC = [[UIAlertView alloc] initWithTitle:@"提 示" message:resultString delegate:nil cancelButtonTitle:@"确 定" otherButtonTitles:nil, nil]; [alVC show]; }