【发布时间】:2011-10-26 00:15:24
【问题描述】:
如何像在联系人应用程序中一样创建带有添加照片按钮的 UITableViewCell?
UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(20, 1, 70, 40)] autorelease];
label.backgroundColor = [UIColor clearColor];
label.font = [UIFont boldSystemFontOfSize:16];
UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(70, 10, 217, 30)];
textField.backgroundColor = [UIColor clearColor];
textField.returnKeyType = UIReturnKeyDone;
[cell.contentView addSubview:label];
[cell.contentView addSubview:textField];
【问题讨论】:
标签: iphone objective-c xcode cocoa-touch ipad