虽然有点晚了。
我已经实现它之前..我设法让UIPresentationFormSheet居中。 这里是我的代码..
[detailView setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[detailView setModalPresentationStyle:UIModalPresentationFormSheet];
[self presentModalViewController:detailView animated:YES];
detailView.view.superview.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
float heightOfFrame = 200.0f;
float widthOfFrame= 400.0f;
detailView.view.superview.frame = CGRectMake(
self.view.superview.center.x - (widthOfFrame/2),
self.view.superview.center.y - (heightOfFrame/2),
widthOfFrame,
heightOfFrame
);
希望我帮助你在某些方面。
问候,史蒂夫
谢谢回复。你怎么看待使用界限?而且,当呈现视图是导航控制器时,你有问题吗?看起来这些黑客在使用导航控制器时不起作用。 – Ricardo 2012-07-06 13:59:51