title: Add condition in macro
body: <p>How to add following condition in macro</p>
  
  <p>if (![NSStringFromClass([[self superview] class]) isEqualToString:@"_UIModalItemAlertContentView"])</p>
  
  <p>I want to add these two methods only if superClass of tableView category is not alertView</p>
  
  <pre><code>#if ([NSStringFromClass([[self superview] class]) isEqualToString:@"_UIModalItemAlertContentView"])
  
  -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  {
      if ([self.customDelegate respondsToSelector:@selector(tableView:touchBegan:withEvent:)]) {
          [self.customDelegate tableView:self touchBegan:touches withEvent:event];
      }
  
      [super touchesBegan:touches withEvent:event];
  }
  
  -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
  {
      if ([self.customDelegate respondsToSelector:@selector(tableView:touchEnded:withEvent:)]) {
          [self.customDelegate tableView:self touchEnded:touches withEvent:event];
      }
  }
  
  #endif
  </code></pre>