当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - How to make a page view controller work with 3 table views?

问题描述:

I have 3 arrays of data I want to display in 3 different tables. I want to show one set of data (on the table) at a time while being able to swipe left or right to see the other data.

Here is what I have:

Right now, the page controller isn't hooked up to anything but the tableView works fine. I also would like to have the same Cell for every table.

Basically, I just need the data to change when you swipe on the table. How can I do this?

It seems I need to add a scroll view under the tableView but I am not 100% sure. I can't seem to find any tutorials on just adding a page view controller.

Any help would be appreciated. Thanks!

分享给朋友:
您可能感兴趣的文章:
随机阅读: