I am trying to change the frame size and position for two UITableViews that are inside a UIViewController that is the rootviewcontroller for UINavigationController.
I want the frame size to change upon a user action. I have everything set up and the following code is executing upon the user's action:
CGRect firstTableFrame = [myTableView frame];
firstTableFrame.size.height = 290;
[self.myTableView setFrame:firstTableFrame];
NSLog(@"%f",self.myTableView.frame.size.height);
[self.myTableView reloadData];
I can confirm that the NSLog outputs 290. However, nothing on screen changes. I found one answer on here that I thought might solve it (unchecking autolayout) for the .xib file but this results in all sorts of other layout issues with my .xib when I run it.
Is there a way to solve this?