2012-02-08 56 views
1

我正在嘗試製作一個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); 但是裏面的文字沒有遵循。

有什麼辦法解決這個問題嗎? 感謝

回答

0

你不能改變一個UIAlertView中:(它是故意設計來迫使你要簡短!

如果你想顯示大量數據,最好的選擇是創建一個自定義的UIView和但我發現,

+0

謝謝。我也想知道,似乎我沒有看到有不同大小的UIAlertView。 – Clarence 2012-02-08 14:12:28