title: Get the selected button titles from a UIAlertAction sheet added to a UIAlertViewController
body: <p>I created action sheet using Objective-C. When I want to get the selected button title, I got stuck. Please help me.
  (I know there is a delegate method to get the titles of actions. But it is deprecated in iOS 8.0+.) 
  This I my code. My requirement is to get the selected title and update it to a text field.</p>
  
  <pre><code>NSArray *subjectType = [NSArray arrayWithObjects:@"Customer Service",@"Product Info",@"Deals",@"Special",@"Others", nil];
  
      UIAlertController *subjectSheet = [UIAlertController alertControllerWithTitle:@"Subjects" message:@"Select a prefered subject" preferredStyle:UIAlertControllerStyleActionSheet];
  
  
      for (int i=0; i&lt;subjectType.count; i++) {
          UIAlertAction *myalertAction = [UIAlertAction actionWithTitle:[subjectType objectAtIndex:i] style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
  
          }];
  
  
      [subjectSheet addAction:myalertAction];
  }
  </code></pre>