1

I'm making an app where you at one part should be able to switch back and forth between three pages and pick files from each one of them. These will be added to an array as you pick them.

Problem is that the only way I know to link between these pages would be to use a tab bar, which doesn't work within a navigation controller...

Do you have any idea of what might work?

Thanks in advance

Tom
  • 346
  • 2
  • 18

3 Answers3

0

What about a UIScrollView`?

Make your three pages as separate UIView's in your xib. Then, add them side by side into your scroll view in viewDidLoad.

If you set paging = YES on your scroll view then that should work.

deanWombourne
  • 38,189
  • 13
  • 98
  • 110
  • Hmm... Is it possible to make buttons for a certain page then? Because i would need some form of labeling. Also all of the pages are dynamic UITableViews. You can't add those to a UIScrollView right? – Tom Sep 27 '12 at 18:00
  • You can add a `UITableView` to a `UIScrollView` just fine as long as you only scroll horizontally in the scroll view (and don't try to do crazy things like zoom!) And your three `UIView`s can contain anything you want - `UIbutton`s etc - they're just normal `UIView`s! – deanWombourne Sep 28 '12 at 11:11
0

I don't know if I understood you well, but what do you think about using a UISplitViewController?

Using its MasterViewController as a place with buttons to switch between the three pages and in the DetailViewController the corresponding View of each one.

CSolanaM
  • 3,138
  • 1
  • 20
  • 21
  • Without knowing what it is, it sounds like what I could need. Would it make a number parallel pages to switch between without having to push? Am I right? – Tom Sep 27 '12 at 19:02
  • Uhm.. you could have an entire (and different) navigation flow on each one of the three pages you're talking about. This is an example of what I'm talking about. Is a split view like the one at "Settings", http://disanji.net/iOS_Doc/documentation/UserExperience/Conceptual/MobileHIG/art/split_view.png – CSolanaM Sep 27 '12 at 19:24
  • 1
    Ahh... No but as the tag says it's in iPhone. Thing is I have 3 table views that should be okay to go back and forth between without pushing over and over on each other. Get what I mean? – Tom Sep 27 '12 at 19:36
  • Uhm i've done something similar for iPad, for the phone maybe this can help you: http://stackoverflow.com/questions/7775195/splitview-but-on-iphone – CSolanaM Sep 27 '12 at 19:56
0

It might not be the exact answer to the question, but can very well be a solution to other people finding this thread...

After a while of experimenting, I found out that I could just change the content in the UITableView for each button push instead of having three separate UITableView's.

Tom
  • 346
  • 2
  • 18