hello guys.. I have used date picker in alert view. As alert view has default height and width, I want to change that... Any one know that how to do? Please convey..!
A:
Replace CGRectMake
parameters with proper values.
UIAlertView *alertView = [[UIAlertView alloc]
initWithFrame:CGRectMake(5, 20, 320, 400)];
You could also subclass UIAlertView
.
RaYell
2010-06-07 08:03:04
Ya i have tried it but still facing same problem...Thanks RaYell for instant reply..
Mahesh
2010-06-07 08:34:24
If `initWithFrame` doesn't work for you then I'd go with `UIAlertView` subclass.
RaYell
2010-06-07 08:35:47
Thanks, i have created alert view subclass... now its working fine..
Mahesh
2010-06-07 12:09:56
A:
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?
KennyTM
2010-06-07 11:17:24