【发布时间】:2017-06-08 18:17:46
【问题描述】:
我希望能够将描述性文本放在标签下方。以下是我到目前为止的代码:
UISwitch *toggle = [[UISwitch alloc] init];
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"Cell"];
cell.textLabel.text = @"Remote Execution";
cell.detailTextLabel.text = @"Remote execution will permit registered devices to execute tests without manually starting them";
[cell addSubview:toggle];
cell.accessoryView = toggle;
[cell.detailTextLabel setAlpha:1.0];
[cell.detailTextLabel setTextColor:[UIColor redColor]];
【问题讨论】:
标签: ios objective-c uitableview uiswitch