title: appearanceWhenContainedIn not working as expected with UITableView and UINavigationController
body: <p>I created a simple project with a UINavigationController, a UIBarButtonItem on the right, and a UITableView. For testing, I want to use appearanceWhenContainedIn: to color the UIBarButtonItems on the UINavigationController orange while also coloring UIButtons in the UITableView red. Alone, each styling works correctly. But when I use both together, it doesn't work. Why??</p>
  
  <p><strong>Scenario 1 (Color UIBarButtonItem in UINavigationController):</strong></p>
  
  <pre><code>[[UIBarButtonItem 
      appearanceWhenContainedIn:[UINavigationController class], nil] 
          setTintColor:[UIColor orangeColor]];
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/2UNMk.png" alt="enter image description here"></p>
  
  <hr>
  
  <p><strong>Scenario 2 (Color UIButton in UITableView):</strong></p>
  
  <pre><code>[[UIButton 
      appearanceWhenContainedIn:[UITableView class], nil] 
          setTintColor:[UIColor redColor]];
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tLh5I.png" alt="enter image description here"></p>
  
  <hr>
  
  <p><strong>Scenario 3 (Combine them):</strong></p>
  
  <pre><code>[[UIButton 
      appearanceWhenContainedIn:[UITableView class], nil] 
          setTintColor:[UIColor redColor]];
  [[UIBarButtonItem 
      appearanceWhenContainedIn:[UINavigationController class], nil] 
          setTintColor:[UIColor orangeColor]];
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/vybsJ.png" alt="enter image description here"></p>
  
  <hr>
  
  <p>Sample project can be downloaded via this link: <a href="https://www.dropbox.com/s/k7nabaqc9oso907/AppBugTesting.zip" rel="nofollow noreferrer">https://www.dropbox.com/s/k7nabaqc9oso907/AppBugTesting.zip</a></p>
  
  <p><strong>Update:</strong>
  As I continue to diagnose the problem, I found that if I use "setBackgroundColor" of the UIButton to red rather than setTintColor, it shows the red background <strong>and</strong> the orange tint to the UIBarButtonItem. For some reason tinting both doesn't work... still not sure why.</p>