UITableViewCell text style using UIAppearance

I have a tableView type Plaincontaining one PrototypeCell type Custom. The prototype cell class is the standard class UITableViewCell, since I do NOT use any specialized subclass. TableViewCell settings ...
The problem is that I just want to style the text labels contained in the standard one UITableViewCell(textLabel and detailTextLabel) using UIAppearancefor iOS7.

I tried

[[UILabel appearance]] appearanceWhenContainedIn:[UITableViewCell class], nil] setTextColor:UIColor.redColor];

to no avail. I know that the Apple documentation states that the default tags mentioned above are always created using the default font and with black text. However, I was expecting the UILabels style with the look to work. Any ideas on this topic?

: , cell.textLabel.textColor = UIColor.redColor, .

+4
1

, Custom, Subtitle. IB.

, . ( ContentView ):

Subtitle celltext label properties

+2

Source: https://habr.com/ru/post/1532017/


All Articles