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];
网友评论