cellForRow中定义控件和添加

来源:互联网 发布:mac怎么取消隐藏数据 编辑:程序博客网 时间:2024/05/16 14:36
UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 300, 70)];
[textLabel setText:[log content]];
[textLabel setFont:[UIFont fontWithName:@"Arial" size:14.0f]];
[textLabel setNumberOfLines:3];

[cell.contentView addSubview:textLabel];//添加文本框视图

[textLabel release];

原创粉丝点击