我想在前面添加启动画面和前面的acttivity指示器…为此我在Appdelegate.m中添加以下代码
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,320,480)]; splashView.image = [UIImage imageNamed:@"Default.png"]; acivityindicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(67,24,30,30)]; acivityindicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite; acivityindicator.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin); [window addSubview:splashView]; [window addSubview:acivityindicator]; [window makeKeyAndVisible]; [window bringSubviewToFront:acivityindicator]; [acivityindicator startAnimating];
但只有启动画面正在工作.Activityinicator没有出现.我怎么了