Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8159945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:05:14+00:00 2026-06-06T18:05:14+00:00

this is the situation: I need horizontal scrolling, and table views inside every page.

  • 0

this is the situation:

I need horizontal scrolling, and table views inside every page. This is something like news app, it should display news from different categories, when scrolled in one horizontal direction, and inside one category it should display about 30 news, vertically scrollable, of course.

I have successfully done what i need, but…

I have following scenario:

UINavigationController
|__ UIViewController, which contains ScrollView and PageControl
    |__ UITableViewController, which holds data in rows, and is displayed inside parent, which is actually ScollView

I know that this is not an ideal solution, but at least it works. As a base, i used Apple’s code and tutorial for PageScroll found on this link. Instead of simple viewController to add to ScrollView, i used TableViewController, so basically i add tableController.tableView to the ScrollView.

I know, also, that adding tableViews inside scrollview is sort of adding a car inside a truck and driving that car, but i couldn’t find more reasonable way of doing same thing.

So, i need your thoughts about how this can be accomplished using some other approach. I use storyboarding and iOS 5 for this, and everything seems (and looks) messy right now.

Thanks in advance, a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:05:15+00:00Added an answer on June 6, 2026 at 6:05 pm

    I did something similar a few months ago, and it was like this:

    • UINavigationController
      • UIViewController with a UIScrollView
        • UIViewController with a UITableView inside (I use this because I simply hate UITablewViewController)

    I followed the Apple’s documentation about creating custom containers. There is a great video about that in the WWDC 2011 video’s section if I am not mistaken. I can proudly say that the code is really clean and simple to understand.


    Answer 1.0

    The one thing is, did you managed to get proper orientation handling of the tableView, without any hack, or you don’t use it?

    No, in this case I didn’t, but I am sure I would have been able to do it without any problem. You see, most of the problems come when you just [self.view addSubView:newViewController.view];. You just add the UIView, all the logic of the rotation is handled by the newViewController and not in the controller where the UIView will be.

    The other thing is, if i’m gonna try to implement, say, GridView or something like that, for iPad, orientation handling and animations become very ugly.

    I implemented this in another project and it was quite easy to implement once you understand what’s going on:

    1. I used a UIViewController with a UITableView so I could get all the goodies from the dequeueReusableCellWithIdentifier:, creation of section’s titles, table’s headers and footers, etc. I just figure that no matter what I would do with a UIScrollView a UITableView is always going to be more optimized. As the UITableViewCell's I just used an holder with 3 squares, each one being a picture. (my application was a showcase of pictures)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this situation were I need to include Persons inside a Group. For
I'm in this situation that i need a list of lists. for instance i
Using this file as source, I have a situation where I need to retrieve
I have this situation: There are a login page with a login form (form
I have this situation where I need to modify the insert command after is
I have this situation where I need to get some data from a webpage
I would like to know how you normally deal with this situation: I have
This is the situation: I need to install matplotlib for my project. Initially it
Hi all I have this situation , I need to write unit test cases
I have this situation that I need to let users define decisions based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.