【发布时间】:2011-04-27 21:11:18
【问题描述】:
你好 我有一个警报视图,我想通过 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];
}
提前致谢。
【问题讨论】:
-
对我来说同样的问题。我无法同时更改 UIAlertView 的宽度和高度。有什么帮助吗?提前致谢
标签: iphone xcode sdk uialertview