title: iOS how present Modal ViewController from Uiview
body: <p>i have subclass a <code>UIView</code> and now i need to show a view controller but <code>UIView</code> not have method to present view controller.
  this is my problem
  thank's</p>
  
  <p>this is a piece of code inside my uiview subclass</p>
  
  <pre><code>-(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  
      if ([tabella isEqualToString:@"Articoli"]) {
          NSDictionary *itm=(NSDictionary*)[comanda objectAtIndex:indexPath.row];
  
          Articoli *aboutViewController = [[Articoli alloc] initWithNibName:@"Articoli" bundle:nil];
  
          aboutViewController.modalPresentationStyle = UIModalPresentationFormSheet;
          aboutViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
          aboutViewController.idarticolo=[itm objectForKey:@"idarticolo"];
          CGRect aboutSheetFrame = aboutViewController.view.frame;
  
          UIViewController *viewController = [UIViewController new];
          viewController.view = self;
  
          //here xcode give me a red error
          [self presentViewController:viewController animated:YES completion:nil] ;
  
          aboutSheetFrame =CGRectZero;
          aboutViewController.view.superview.bounds = aboutSheetFrame;
  
      }
  }
  </code></pre>