I have a UITableView within a UIView, which is within a UIScrollView. I got a UIViewController as my controller to manage all these items.
My UIView has a UIImage, a UILabel, and the UITableView within it. Everything here is working just fine, down to the loading of data on the UITableView for the most part. As mentioned, the UIView is within a UIScrollView, which I have done so that I can scroll the UIView up and down.
I got it scrolling just fine, but I've run into a couple of issues that I can't seem to find answer to. Can someone chime in here and give me their input on the below items?
- When I scroll the UIView, it scrolls the whole view as it should, but the UIViewTableCells are not loading up when they come into view. On a normal UITableView set up, when you scroll, as each cell becomes visible, that cell is populated with data. With my set up, it scrolls the whole view, but you can see the UITableView being cut off at the bottom when the view scrolls. How can I remedy this problem?
- If I start my scroll on the UITableView, it scrolls the UITableView only, and not the whole view. I don't want it to scroll the table view at all. I want it to scroll the view. Is this as simple as catching an event on UITableView, canceling it, and letting the UIScrollView object handle it?
Any help on this would be appreciated. Thanks guys!