I have a UIView with a UITableView inside.
In a UIViewController, I instantiate the UIView like this:
viewMain = [ViewMain alloc]initwithframe:cgrectmake(0,0,200,500)];
Inside this view, in the method initWithFrame:(CGRect)frame, I instantiate the UITableView like this:
_tableView = [UITableView alloc]iniWithFrame:CGRectMake(0,0,frame.size.width,frame.size.height)];
The problem is when I apply constraints to viewMain, how can I update de size of the tableView based on the viewMain layout constraints?