Question about subview-mapview-tableview

Discussion in 'iOS Programming' started by MACloop, Feb 12, 2010.

  1. MACloop macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #1
    Hi,
    I have an app with some tableViews. In those tableViews ist it possible for the user to look at specific detailed views for each cell. In the navigationbar I will build in a selectionButton to enable a switch between this tableView and a mapview. I have done it before but is nor really sure which structure to use for this. My thougt to solve it is:
    - add a map as subview in viewDidLoad and set it to hidden
    - in viewDidLoad call NSURLConnection in oder to get the data for the map
    - When the user pushes the map-choice in the selectionButtonm, the mapview will be set to hidden:NO;

    Is this a proper way to solve this? My view is a TableView...

    Thanks in advance!
    MACLoop
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    It's a way. I don't think there really is one proper way in this case. For example, another way to bring up the map view is to present it modally.
     
  3. MACloop thread starter macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #3
    Thanks for the answer! About to make it appear in a modal way... could you describe abit more how you mean that?
    Thanks in advance!
    MACLoop
     
  4. MACloop thread starter macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany

Share This Page