你好,我有一个警示框,我想通过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];
谢谢您提前阅读。