I am using swift and have a story board containing a UIViewController which includes a UIScrollView with UITableView.
What am I trying to do is to load an excel file in a table so I need to scroll horizontally. I can set the content size of scroll view with:
scrollView.contentSize = CGSize(width: 3500, height: scrollView.contentSize.height)
I do also need to set the size of frame of UITableView. When I set it from storyboard with the field shown it works, but when I set it programmatically from viewDidLoad method it does not work. The width value is shown as changed to 3500 but when I checked in tableView cellForRowAtIndexPath method, I see the value set in story board.