title: click button action in sequentially order in UITableView
body: <p>created 4x4 metrics button in UITableView.
  I want to select the button in sequentially order.</p>
  
  <p>// button Creation in cell for row Index</p>
  
  <pre><code>for (int i = 0; i&lt; [buttonArray count]; i++)
  {
      int buttonSpace = 10 * i + 10;
      NSLog(@"ButtonPosition:%d",buttonSpace + (i * 50));
      cell.Button = [[CustomButton alloc] initWithFrame:CGRectMake(buttonSpace + (i * 50),35, 50, 50)];
      cell.Button.layer.cornerRadius = 25;
      [cell.Button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
      cell.Button.buttonIndex = i;
  
      [cell.ScrollView addSubview:cell.Button];
      cell.ScrollView.backgroundColor = [UIColor colorWithWhite:1.0 alpha:0.3];
  }
      rowIndexValue = indexPath.row;
  </code></pre>
  
  <p>// Button action in view controller.</p>
  
  <pre><code>-(void)buttonAction:(CustomButton *)sender
  {
      if (rowIndexValue) {
  
          int counter = (int)[sender buttonIndex];
              if (counter == incrementValue)
              {
                  sender.backgroundColor = [UIColor redColor];
                  counter += 1;
                  incrementValue = counter;
              }
              else{
                  sender.selected = NO;
              }
          }
  }
  </code></pre>
  
  <p>The order of button action in sequential order, for any random row's.
  user select 3rd row but selection row in third row start from 1st button then 2nd button then 3rd button finally 4th button.</p>
  
  <p>4x4 - > 4 row for UITableview 4 button in each row. Once button is click it will be in disable Mode</p>