开发者

How to Set the size of alert View?

I have used date picker in alert view开发者_如何学Python. As alert view has default height and width, I want to change that... Any one know that how to do? Please convey..!


Replace CGRectMake parameters with proper values.

UIAlertView *alertView = [[UIAlertView alloc] 
                          initWithFrame:CGRectMake(5, 20, 320, 400)];

You could also subclass UIAlertView.


You can't resize the UIAlertView cleanly.

You could change the .frame after the UIAlertView has been -shown, but the buttons will be wrongly placed.

Why not use a UIPopoverController since you're targeting iPad?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜