table view controller as menu?

Discussion in 'iOS Programming' started by theprizerevealed, Jun 1, 2019.

  1. theprizerevealed macrumors regular

    Joined:
    Feb 26, 2016
    #1
    I wish to update an app with a menu. I have been doing that with switches until now; however there are too many view controllers and so I wonder if it's possible to use the table viewcontroller as a menu with each being a button to segue to a particular viewcontroller? thanks
     
  2. PhoneyDeveloper macrumors 68040

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Take a look at Settings.app on your device. It uses TableViews extensively. See if something there is what you want.
     
  3. Mascots, Jun 2, 2019
    Last edited: Jun 2, 2019

    Mascots macrumors 68000

    Mascots

    Joined:
    Sep 5, 2009
    #3
    Generally, I would say UITableView is going to be your most extensively used 'complex' building block for anything that involves rows of segmented data or layouts that can scroll beyond the available bounds. It's a step more powerful than UIScrollView in the sense that it has a layout engine attached for delivering the various subviews.

    You can also nest it within just about anything, including menu-styled views.
     
  4. theprizerevealed thread starter macrumors regular

    Joined:
    Feb 26, 2016
    #4
    Is there a special cell or button for the tableview controller cells that has those little right pointing arrows on the right side of the cells? Where do I find it?
     
  5. PhoneyDeveloper macrumors 68040

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
  6. theprizerevealed thread starter macrumors regular

    Joined:
    Feb 26, 2016
    #6
    thanks.

    I have another question. I embedded a navigation controller into the table viewcontroller. This created a navigation bar in the viewcontrollers to which the table viewcontroller segues. The navigation bars have back buttons with the left pointing arrows.

    I need to know if there is a way programmatically to trigger the back button on the navigation bars. thanks again for everyone's help.
     
  7. PhoneyDeveloper macrumors 68040

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
  8. theprizerevealed thread starter macrumors regular

    Joined:
    Feb 26, 2016
    #8

Share This Page

7 June 1, 2019