How switch to a splitview

Discussion in 'iPhone/iPad Programming' started by TroX-91, Jul 8, 2010.

  1. macrumors newbie

    Joined:
    Jul 8, 2010
    #1
    Hi

    I designed a first application where I got my Splitview working well. But now I want to design another one where I got a main menu, where I got a button, and on push, I want to show up my split view.
    The problem is than I only got my right side view of my split view (positionned on the left...), when I push the button.

    My goal is quit simple, "Show the SAME view of my first application, in my current application, when I push a button on my main menu".
    If anybody got an idea/advice, it will be really helpful.

    Thanks.:)
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    For some reason, split views must be the root view of your application or they won't work properly. Take that into account when designing your UX. For example, in the iPad version of CraigsHarvest that I'm working on, I present my menu view modally on top of the split view.
     
  3. thread starter macrumors newbie

    Joined:
    Jul 8, 2010
    #3
    After some research, I finally found that my splitView has to be the rootViewController. Then I design a SplitView application that I want, and now my problem is to show my main menu over the split view.
    How could I do that ?
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Did you read my post?
     
  5. thread starter macrumors newbie

    Joined:
    Jul 8, 2010
    #5
    I can't read your post, I'm at work and the access to "downloadind software or freeware" website are restricted, and your link is one. I'll read it once I come back home.
    Thanks. :D
     
  6. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Now, I'm really confused. You were able to read my post that asked if you read my previous post but weren't able to read that post itself?
     
  7. thread starter macrumors newbie

    Joined:
    Jul 8, 2010
    #7
    I can't access to your CraigsHarvest link (in your signature), this is what your talking about when you say "my post", isn't it ?
    Of course I read your post if it is the one in the thread.
     
  8. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    No.

    It is. The last sentence contains a suggestion for how you can solve your problem (i.e. present the menu view modally).
     
  9. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #9
    ?????

    In general one should think of the split view controller to be similar to the navigation controller and the tab bar controller. They are controllers that manage other controllers. The navigation controller can be used inside a tab bar controller but the tab bar controller and the split view controller want to be the root view controller.
     

Share This Page