title: how to pass multiple tags to addTarget:action:forControlEvents?
body: <p>I know the code i have written is wrong. but i want something like this. How to do it? </p>
  
  <pre><code>UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  int totalcout = 0;
  int passValue ;
  for(int j=0; j&lt;5; j++{
      for(int i=0; i&lt;5; i++)
      {
          totalcout++;
          if(totalcount &gt;1){
            break;
          }else{
          passValue = i;
          }
      }
      button.tag = j;
      [button addTarget:self action:@selector(button:) forControlEvents:UIControlEventTouchUpInside];
  }
  
  
  - (IBAction) button:(UIButton *)sender {
      NSLog(@"tag numbers are  %d", sender.tag);
  
      detailViewController.mutableArray1 = [oneMutableArray objectAtIndex:sender.tag];
      detailViewController.mutableArray2 = [twoMutableArray objectAtIndex:passValue];
  }
  </code></pre>
  
  <p>I hope the question is clear.
  Thank you in advance</p>