簡體   English   中英

在iPad上增加UIAlertView大小

[英]Increase UIAlertView size on iPad

我正在嘗試制作一個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); 但里面的文字不跟隨。

有什么辦法解決這個問題? 謝謝

您不能更改UIAlertView :(它是故意設計的,以使您簡短!

如果要顯示大量數據,最好的選擇是創建一個自定義UIView並顯示它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM