0
私は(説明の目的のために)次のコードを持って戻った後のUIViewが示されている:IBActionメソッドは
- (IBAction)buttonPress:(id)sender {
UIView *overlayView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
overlayView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
activityIndicator.center = overlayView.center;
[overlayView addSubview:activityIndicator];
[self.navigationController.view addSubview:overlayView];
//[self.navigationController.view bringSubviewToFront:overlayView];
[activityIndicator startAnimating];
sleep(10);
//[overlayView removeFromSuperview];
}
オーバーレイビューのみメソッドの復帰後に表示されている理由かしら...
スタックから –
@MikeAlterを返すところから:) –