title: iOS change color of dynamic UIActionsheet buttons
body: <p>I have made dynamic uiactionsheet like:</p>
  
  <pre><code>- (IBAction)selectCity
  {
      UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:kCityActionSheetTitle
                                                               delegate:self
                                                      cancelButtonTitle:nil
                                                 destructiveButtonTitle:nil
                                                      otherButtonTitles:nil];
      for (NSString * cityNameNSS in [_cityNamesAndUrlsNSMD allKeys]) {
          [actionSheet addButtonWithTitle:cityNameNSS];
      }
      [actionSheet addButtonWithTitle:kCancellButtonTitle];
      actionSheet.cancelButtonIndex = [[_cityNamesAndUrlsNSMD allKeys] count];
      actionSheet.tag = 2;
      [actionSheet showInView:[UIApplication sharedApplication].keyWindow];
  
  }
  </code></pre>
  
  <p>I want to change the uiactionsheet buttons' tint colors. Therefore I wrote:</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 colorWithRed:0.0/255.0 green:150.0/255.0 blue:94.0/255.0 alpha:1.0]
                           forState:UIControlStateNormal];
          }
          else if([subview isKindOfClass:[UILabel class]]){
              UILabel *label = (UILabel *)subview;
              [label setTextColor:[UIColor colorWithRed:0.0/255.0 green:150.0/255.0 blue:94.0/255.0 alpha:1.0]];
  
          }
      }
  }
  </code></pre>
  
  <p>However, only in this case(in dynamic uiactionsheet) , the button colors are not changing. I have other uiactionsheet in the same controller, they are changing their colors.</p>
  
  <p>What can be a possible problem/solution?</p>