【问题标题】:Increase UIAlertView size on iPad增加 iPad 上的 UIAlertView 大小
【发布时间】:2012-02-08 13:31:50
【问题描述】:

我正在尝试制作一个 iPad 应用程序,该应用程序的信息将在 UINotification 中弹出。但是通知的默认大小比较小。有什么办法可以增加通知的大小吗?

-(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); 但里面的文字没有跟随。

有没有办法解决这个问题? 谢谢

【问题讨论】:

    标签: ios ipad xcode4.2 uialertview


    【解决方案1】:

    你不能改变 UIAlertView :( 它是故意设计来强迫你简短的!

    如果要显示大量数据,最好的选择是创建自定义 UIView 并改为显示。

    【讨论】:

    • 谢谢。我也想知道,似乎我没有看到任何大小不同的 UIAlertView。
    猜你喜欢
    • 1970-01-01
    • 2012-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-13
    • 2014-03-05
    • 2016-08-19
    相关资源
    最近更新 更多