TableView的cell中放入文本框是怎么做的

2025-04-19 00:11:17
推荐回答(1个)
回答1:

CGRect labelRect = CGRectMake(100, 5.0, 50, 50);
UILabel *label = [[UILabel alloc] initWithFrame:labelRect];
label.text = @"名称:";
label.backgroundColor=[UIColor clearColor];
[cell addSubview:label];