循环创建button(定制需求添加支付方式通过一个返回的json字符串 )

#define Start_X          0.0f      // 第一个按钮的X坐标
#define Start_Y          0.0f     // 第一个按钮的Y坐标
#define Width_Space      10.0f      // 2个按钮之间的横间距
#define Height_Space     0.0f     // 竖间距
#define Button_Height   15.0f    // 高
#define Button_Width    15.0f    // 宽
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
   [cell.ButtonView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
 NSArray *array = [model.PayType componentsSeparatedByString:@"/"];

    if(array.count>0)
    {
        [self addButtonS:array fiatcell:cell];
    }
}
-(void)addButtonS:(NSArray*)number fiatcell:(Fiat_MineBuyListCell*)cell
{
    
    NSDictionary *dic=@{@"0":@"Bankcard",@"1":@"Alipay",@"2":@"Wechat",@"3":@"Bankcard",@"4":@"Bankcard",@"5":@"Bankcard",@"6":@"Bankcard",@"7":@"Bankcard",@"8":@"Bankcard",@"9":@"Bankcard"};
    NSMutableDictionary *mub=[[NSMutableDictionary alloc]init];
    for(int i=0;i obd1.intValue){
            return NSOrderedAscending;
        }
        return NSOrderedSame;
    }];
    
    for(int j=0;j

你可能感兴趣的:(循环创建button(定制需求添加支付方式通过一个返回的json字符串 ))