这是一个打开模式(“添加成分”)的 UITableViewCell:
我正在设置标签颜色以匹配应用程序的 tintColor:
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
cell.textLabel.text = @"Add Ingredients...";
cell.textLabel.textColor = [self.view tintColor];
UIAlertView
出现或时如何使文本颜色变暗UIActionSheet
?此行为是按钮和其他控件的默认行为,但不适用于单元格的文本标签。
我找到了对 tintAdjustmentMode 和 tintColorDidChange 的引用,但也不知道如何使用。
或者我应该在我的单元格中添加一个按钮?我以前使用这种方法的经验并不是最佳的——响应性有副作用。