IOS7 UIModalPresentationPageSheet问题

时间:2014-01-08 07:27:32

标签: ios ios5 ios7

我需要设置我的Modal弹出窗口的位置。它的工作正常IOS 7仅与IOS 7有关。我无法设置Modal Popup的坐标。它没有采取任何价值观。

MyModalViewController *targetController = [[[MyModalViewController alloc] init] autorelease];
targetController.modalPresentationStyle = UIModalPresentationPageSheet;
targetController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; 
[self presentModalViewController:targetController animated:YES];
targetController.view.superview.frame = CGRectMake(40, 80, 944, 650);

0 个答案:

没有答案