如何在iOS 7中调整UIAlertView的大小

时间:2014-04-24 09:46:33

标签: ios ios7 uialertview

目前我使用此代码但在iOS 7中无效。它在iOS 6中运行良好:

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:nil delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:Nil, nil];

[alertView show];

- (void)willPresentAlertView:(UIAlertView *)alertView {
   [alertView setFrame:CGRectMake(alertView.frame.origin.x, alertView.frame.origin.y, alertView.frame.size.width, 200)];
 }

我们如何在iOS 7中调整大小?

0 个答案:

没有答案