title: UILabel Disappear From Static UITableViewCell with Dynamic Type
body: <p>I have static <code>UITableView</code> with Basic style cells, default 44 height. There is a label in each cell with Body text style. This way I'm getting Dynamic Type behaviour for free. </p>
  
  <p>It works except if:</p>
  
  <ol>
  <li>Open app</li>
  <li>Open table view</li>
  <li>Open Settings ang change text size (bigger of smaller)</li>
  <li>Open app again, labels vanishing.</li>
  <li>Go to another view (back) and open troubled table again — text changed and looks good</li>
  </ol>
  
  <p>I managed to fix this with following hack</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(preferredContentSizeChanged)
                                                   name:UIContentSizeCategoryDidChangeNotification object:nil];
  }
  
  - (void)preferredContentSizeChanged
  {
      // adjust the layout of the cells
      // for some reason text from labels are disappear
      self.statusBarCell.textLabel.text = @"Status bar";
      self.itemColorCell.textLabel.text = @"Color";
  </code></pre>
  
  <p></p>
  
  <p>But I have another exactly the same <code>UITableView</code> and this is not working. I tried outlets for cells and labels. I tried <code>reloadData</code> and <code>setNeedsLayout</code> methods.  </p>
  
  <p>Here is pictures. Labels are yellow and content view is blue:</p>
  
  <p><img src="https://i.stack.imgur.com/YPlg3.png" alt="Before, cells with content">
  <img src="https://i.stack.imgur.com/b3jIG.png" alt="After, cells without labels"></p>