Resize contents of rear view controller?
Hi, I'm pretty new to Xcode/Swift, so I'm just wondering.
At the moment, I have my rear view controller set to a UITableViewController which has cells, which the user can press and then information is passed to the front view controller. This all works perfectly. The only issue is, the table view itself does not resize to the width of the menu, meaning content is cut off.
I cannot for the life of me figure out how to automatically resize the contents of the UITableViewController to fit the size of the SWRevealViewController. I've attached a screenshot to explain what I mean.
Any help would be hugely appreciated!
It is normal as a UITableView use the entire view of it's controller (UITableViewController). If you want to resize your tableview you have to manage it in a UIViewController subclass.
Thanks a lot for the hint, I'll try doing it that way then!
You can also keep your table view controller and set the property rearViewRevealOverdraw to 0
Take a look on my answer here, hope this help https://stackoverflow.com/a/46444950/2741910