【发布时间】:2013-03-13 16:42:58
【问题描述】:
作为标题,我想在 UIAlertView 实例的中心添加一个 UIActivityIndicatorView 实例。这是我的代码:
alertView = [[UIAlertView alloc]initWithTitle:@"Processing" message:@"" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil, nil];
CGRect screenRect = [[UIScreen mainScreen] bounds];
indicator = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(screenRect.size.width/2, screenRect.size.height/2,50,50)];
[alertView addSubview: indicator];
[indicator startAnimating];
[alertView show];
我看到的只是 alertView。我有没有搞错?
【问题讨论】:
标签: ios uiactivityindicatorview alertview