Q:

Creating UIView in UITableViewController that doesn't moves with the table view

I would like to display a small UIView with some text in the center of a UITableViewController when I call the showHud method.  
- (void) showHud {

    UIView *paintView=[[UIView alloc]initWithFrame:CGRectMake(150, 150, 120, 30)];
    [paintView setBackgroundColor:[UIColor yellowColor]];
    [self.view addSubview:paintView];

}

Actually the problem with this code is that the view doesn't stays on its place, when I scroll the tableview it goes up with cells.  Is it possible to pin it somehow?  

A:

I don't think you can achieve that with a UITableViewController because the view property of such controller is a UITableView, so the content will always scroll with it. 
You need to create a regular UIViewController and add a UITableView to that controller's main view.  Then anything else you add to that main view, will stay in place as it is outside of the table view.