UISplitViewController in iPhone

Discussion in 'iPhone/iPad Programming' started by mikezang, Feb 27, 2013.

  1. macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I want to create a univeral app, use split view controller in iPad, but in iPhone, I don't want to use Navigation controller, instead I want to use a popover to popup master view controller, like in portrait mode of iPad.

    Is this possible? Please give some suggestion, thanks a lot.
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Should your thread title be "UIPopoverController on iPhone" then?
     
  3. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Yeah, my title is not exact, but I am using popover in iPhone, that is not what I want to know.

    As you know SplitView controller can be config to use popover both landscape and portrait mode, I want to this can be used in iPhone, a special SplitView controller for iPhone.
     
  4. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    Neither UISplitViewController or UIPopoverController are available on the phone.

    You could possibly build your own popover that contained a view controller but didn't take up the entire screen. You might want to look at the View Controller containment APIs to implement this in a compatible way.

    I haven't done this and I doubt that it's simple.
     
  5. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    I got idea, I have to create a custom container view controller that has two view controllers, but the master view controller should keep hide and show in a popover when on iPhone device.
     
  6. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    UIPopoverController is not supported on iPhone.
     
  7. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #7
    That's not problems because I am using popover in iPhone, thiugh it is not provided by Apple.
     
  8. macrumors 68030

    MattInOz

    Joined:
    Jan 19, 2006
    Location:
    Sydney
    #8
    If your happy with 3rd party UIContainers why not go straight to one of Splitview like containers that work with iPhone. There are few about that are open source based on Tweeter or Facebook?
     
  9. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #9
    Can you tell me which one?
     

Share This Page