Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
callagga opened this issue Nov 4, 2011 · 2 comments
Open

Comments

@callagga
Copy link

callagga commented Nov 4, 2011

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]; }

@ghost
Copy link

ghost commented Mar 26, 2012

I'm stumped with this one as well. Knee deep in code atm but cant figure out why presenting a modal view in the detail section (right side) behaves weirdly as if starting from way inside the master side. Also dismissing the modal totally screws up the presenting view. The problem gets even worse in landscape mode :(
Anyone have any updates or fixes on this one? I'm guessing the presentation of the modal view wouldnt be on self but rather using the _split.detail navigation controller.... still its just a guess

@Hackmodford
Copy link

I can get it to show up inside one of the views, but rotation is messed up. Also when you dismiss it, it's parent view fills the entire screen :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants