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 -show
n, but the buttons will be wrongly placed.
Why not use a UIPopoverController since you're targeting iPad?
精彩评论