开发者

iphone search swiping

开发者 https://www.devze.com 2023-01-07 14:31 出处:网络
I am wanting to have half of a view taken up by a page control. The page control will allow the user to swipe from left to right on a selection of 5 different table view lists.

I am wanting to have half of a view taken up by a page control. The page control will allow the user to swipe from left to right on a selection of 5 different table view lists.

  1. Is this possible?
  2. What is the best approach.

Will each table view that will be put into the page control need its own controller? Or am i totally off the path.

The example i want it flow like is the screenshots of apps in the app store app details page. Except for screenshots i will be show开发者_开发问答ing lists of data.

Thanks in advance


It sure is possible. Use a scroll view with paging enabled.

And you dont need to have separate controllers for each table view. You can handle multiple tables in a single TableViewDelegate, as all the delegate methods have the table view a parameter.

Check PageControl and ScrollViewSuit code samples.

And about covering half the view, well, your scroll view can be any size.

0

精彩评论

暂无评论...
验证码 换一张
取 消