0

-(IBAction)popup:(id)sender {

NomadPopupViewController *detailViewController = [[NomadPopupViewController alloc] init];
[self presentPopupViewController:detailViewController animationType:MJPopupViewAnimationFade];
//[self dismissPopupViewControllerWithanimationType:MJPopupViewAnimationFade];

}

得到这个视图,当我点击左导航栏按钮时,我想要这个视图控制器内的弹出菜单

想要这个观点....

4

1 回答 1

0

你可以试试presentViewController,我试试我的一个应用程序

1)把它放在 viewDidLoad()

  self.modalPresentationStyle = 
   UIModalPresentationCurrentContext;

2)点击事件中的this

Popup *v2 = [[Popup   alloc]initWithNibName:@"Popup" bundle:nil];

v2.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;

[self presentViewController:v2 animated:YES completion:nil];

3)使用 UIViewController 制作您想要显示的弹出窗口

完成享受!

于 2013-11-15T11:16:57.203 回答