在iPad上增加UIAlertView大小
问题描述:
我正在尝试制作一个iPad应用程序,其中的信息将在UINotification中弹出。但通知的默认大小相对较小。有什么办法可以增加通知的大小吗?在iPad上增加UIAlertView大小
-(IBAction) player1:(id)sender{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Player1" message:@"Long message"delegate:self cancelButtonTitle:@"Done" otherButtonTitles:nil, nil];
[alert show];
}
我试图添加此代码, alert.frame = CGRectMake(0,0,500,500); 但是里面的文字没有遵循。
有什么办法解决这个问题吗? 感谢
答
你不能改变一个UIAlertView中:(它是故意设计来迫使你要简短!
如果你想显示大量数据,最好的选择是创建一个自定义的UIView和但我发现,
谢谢。我也想知道,似乎我没有看到有不同大小的UIAlertView。 – Clarence 2012-02-08 14:12:28