0

I am using a segmented control as suggested by Marc M here: How do I use a UISegmentedControl to switch views?

I also have a tabbar on the bottom that I would still need to use regardless of what segment I am on.

a busy cat

How to I get the segmented control to switch XIB files?

Community
  • 1
  • 1
Courtney Stephenson
  • 947
  • 2
  • 16
  • 43

2 Answers2

1

Your should follow the answer provided by @Rayfleck.

To setup a segmented control,

  1. Setup a view controller for Media.
  2. Setup a UISegmentedControl and assign labels Teaching and Worship
  3. Create two view for each Teaching and worship (respectively), and have them ready with your data.

  4. Use the link you had provided in your question and check the example on the usage for -

     (IBAction)segmentSwitch:(id)sender 
    

    and link them to the two views.

Legolas
  • 11,767
  • 11
  • 73
  • 129
0

Teachings and Worship would both be sub-views of the Media view. Devotions, About, Connect, Live Service would each their own views, completely independent of the Media view and it's sub-views.

Rayfleck
  • 12,116
  • 7
  • 44
  • 72