Courtney Stephenson
Courtney Stephenson

Reputation: 940

UISegmented Control with a UITabBar on the bottom

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?

Upvotes: 0

Views: 617

Answers (2)

Legolas
Legolas

Reputation: 12345

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.

Upvotes: 1

Rayfleck
Rayfleck

Reputation: 12106

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.

Upvotes: 0

Related Questions