美文网首页
无标题文章

无标题文章

作者: 夏天爱西瓜汁 | 来源:发表于2017-11-28 11:20 被阅读4次

    2016.7.20

    self.timeLabel= [[UILabelalloc]initWithFrame:CGRectMake(cell.frame.size.width-83,17,50,15)];

    self.timeLabel.textAlignment=NSTextAlignmentRight;

    self.timeLabel.font= [UIFontsystemFontOfSize:15];

    self.timeLabel.textColor= [UIColorhexStringToColor:@"#7c7c7c"];

    self.timeLabel.backgroundColor= [UIColorredColor];

    self.applyField= [[UITextFieldalloc]initWithFrame:CGRectMake(cell.frame.size.width-100,17,85,15)];

    self.applyField.placeholder=@"500~30000";

    self.applyField.textAlignment=NSTextAlignmentRight;

    self.applyField.textColor= [UIColorhexStringToColor:@"#7c7c7c"];

    self.applyField.font= [UIFontsystemFontOfSize:15];

    self.borrowField= [[UITextFieldalloc]initWithFrame:CGRectMake(cell.frame.size.width-95,17,80,15)];

    self.borrowField.placeholder=@"5.00~24.00";

    self.borrowField.textColor= [UIColorhexStringToColor:@"#7c7c7c"];

    self.borrowField.font= [UIFontsystemFontOfSize:15];

    if(cell ==nil) {

    cell = [[UITableViewCellalloc]initWithStyle:UITableViewCellStyleDefaultreuseIdentifier:@"cell"];

    }

    if(indexPath.row==0) {

    [celladdSubview:self.applyField];

    }elseif(indexPath.row==1) {

    [celladdSubview:self.timeLabel];

    }else{

    [celladdSubview:self.borrowField];

    }

    cell.textLabel.text= [titleobjectAtIndex:indexPath.row];

    相关文章

      网友评论

          本文标题:无标题文章

          本文链接:https://www.haomeiwen.com/subject/fxbdbxtx.html