您好我有一个alertview,我想通过cgrectmake属性更改大小,但它不会发生.它只取默认大小.
我试过以下代码.
- (void)viewDidLoad {
[super viewDidLoad];
UIAlertView* find = [[[UIAlertView alloc] init]initWithFrame:CGRectMake(0,0,300,200)];
[find setDelegate:self];
[find setTitle:@"Sample Alert"];
[find setNeedsLayout];
[find show];
[find release];
Run Code Online (Sandbox Code Playgroud)
}
提前致谢 .