title: Change Text Color of Items in UIActionSheet - iOS 8
body: <p>I had been using following code to change text color of items which I add in <code>UIActionSheet</code>.:</p>
  
  <pre><code>- (void)willPresentActionSheet:(UIActionSheet *)actionSheet {
      for (UIView *subview in actionSheet.subviews) {
          if ([subview isKindOfClass:[UIButton class]]) {
              UIButton *button = (UIButton *)subview;
              [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
          }
      }
  }
  </code></pre>
  
  <p>It works fine in <code>iOS7</code>, but in <code>iOS8</code> the above code doesn't change the text color of items.</p>
  
  <p>Now my question is how to change the text color of items which I add in <code>UIActionSheet</code> using <code>iOS8</code>??
  <br><br>
  <strong>Additional Info:</strong>
  <br>I added breakpoint to see whether following lines from the above code get executed or not:</p>
  
  <pre><code>UIButton *button = (UIButton *)subview;
  [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  </code></pre>
  
  <p>These lines do not get executed. So, <code>if([subview isKindOfClass:[UIButton class]])</code> is always <code>false</code> for all items of <code>actionSheet.subviews</code>. So what I think is that the view heirarchy of 
  <code>UIActionSheet</code> has been changed.</p>