title: How to do Multiple Selection and Sections in an Action Sheet?
body: <p>In my Phone App I need an ActionSheet where I have multiple button sections and the possibility to select one button of each section. An accept the whole with an Ok button.</p>
  
  <p>First I have a method where I open the ActionSheet:</p>
  
  <pre><code>-(void)showActionSheet{
      UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles: nil];
  
      for(int i = 0; i &lt; [selectionArray count]; i++){
          ObjektGroup *groupArray = [selectionArray objectAtIndex:i];
          for(int j = 0; j &lt; [groupArray count]; j++){
              [sheet addButtonWithTitle:nameofbuttonbla];
          }
          [sheet addButtonWithTitle:@"------------------"];
      }
      [sheet addButtonWithTitle:@"OK"];
      sheet.cancelButtonIndex = sheet.numberOfButtons-1;
      [sheet showInView:self.view];  
  }
  </code></pre>
  
  <p>As you can see, I add the Buttons dynamicly. That works fine, but the section devider <code>([sheet addButtonWithTitle:@"------------------"];)</code> is not the final solution that I want. 
  So is there a possibility to devide the groups like a grouped tableView?
  + I want only select one Button per section.</p>
  
  <p>Another Problem is when following Method gets called:</p>
  
  <pre><code>-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{}
  </code></pre>
  
  <p>The <code>Actionsheet</code> dismisses automaticly. I want to avoid that too.</p>
  
  <p>Any ideas?     </p>