Skip to content

support for presentModalViewController to work/render in one side only #10

@callagga

Description

@callagga

When I try to modally present another view within the right-hand-side (there is a reason it has to be modally presented rather than pushed onto the nav stack) it doesn't stay inside the bounds of the right hand side navController but takes over the whole iPad display, wiht the splitter vertical graphic cutting down through it. Also navigation back from the modally presented view screws up and then takes over the whole screen as well.

Is this a bug, or am I missing something, or is it an enhancement request? Is there a way to get it a viewController to load, using a "presentModalViewController" modal mechanism, only with the navController area the current view is within (on the right handside).

Code where splitView is setup (within @interface SimpleSplitController : APSplitViewController):

- (void)viewDidLoad { [super viewDidLoad]; self.left = [[(UIViewController*)[AppointmentListController alloc] initWithNibName:@"AppointmentListController" bundle:nil] autorelease]; self.right = [[(UIViewController*)[WeekDetailsController alloc] initWithNibName:@"WeekDetailsController" bundle:nil] autorelease]; [self pushToMasterController:self.left]; [self pushToDetailController:self.right]; }

Code where issue occurs (within WeekDetailsController)

- (void)showModalView:(id)sender { testViewController *tc = [[[testViewController alloc] initWithNibName:@"testViewController" bundle:nil] autorelease]; [self presentModalViewController:tc animated:YES]; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions