开发者

How to Set the size of alert View?

开发者 https://www.devze.com 2023-01-02 07:22 出处:网络
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 paramete

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

精彩评论

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