보기를 변경할 때 내 iPhone에 UIActivityIndicatorView를 표시하려고합니다. iPhone의 UIActivityIndicatorView 관련 문제
- (void)viewDidLoad
{
spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[spinner setCenter:CGPointMake(320/2.0, 460/2.0)]; // I do this because I'm in landscape mode
[self.view addSubview:spinner];
}
버튼의 클릭 이벤트에
내가보기를 변경하려면 그 시간 사이에 내가 indicatorView 그래서, 나는 그것이-(IBAction)buttonClick:(id)sender
{
[spinner startAnimating];
ViewController *lController = [[ViewController alloc] initWithNibName: @"View" bundle:nil];
self.viewController = lController;
[lController release];
//
[[self mainController] dismissModalViewControllerAnimated:YES];
[lViewController.view removeFromSuperview];
[self.view addSubview: lController.view];
[spinner stopAnimating];
}
쓰기 있음을 보여주고 싶은 : 다음 코드를 작성했습니다 표시기가 표시되지 않으므로 plz이 내가 어디 잘못되었는지 말해 주시겠습니까?