I was wondering if anyone knows why when you set the frame of a subview in viewDidLoad and viewWillAppear the changes do not take affect on the scr
viewDidLoad
viewWillAppear
in viewWillAppear()
just call layoutIfNeeded() once for the view whose frame you want to get.
if tableView then tableView.layoutIfNeeded() for exmple