presenting modal views in a popover
Posted
by sengbsd
on Stack Overflow
See other posts from Stack Overflow
or by sengbsd
Published on 2010-05-12T22:36:07Z
Indexed on
2010/05/13
3:44 UTC
Read the original article
Hit count: 288
Hi,
Im trying to load a modal view from a view controller that is displayed in a popover. The modal view loads but the problem is that it transitions into the main view and not within the popover. Is it something Im missing? I thought simply initiating it from a vc within a popover would present the modal view within the same popover...
The code is nothing special as bellow:
- (IBAction)myButton{
ModalVC *controller = [[ModalVC alloc] initWithNibName:@"ModalVC" bundle:nil];
[self presentModalViewController:controller animated:YES];
[controller release]; }
© Stack Overflow or respective owner