I have difficulty adding a subview (UIView) from within the viewDidLoad method of a UITableViewController
This works:
[self.view addSubview:self.prog
As UITableViewController is a subclass of UIViewController, you need to add your desired view to its superview.
Swift: self.view.superview?.addSubview(viewTobeAdded) Objective C: [self.view.superview addSubview: viewTobeAdded];