我想在前面添加启动画面和前面的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没有出现.我怎么了
解决方法
您无法将任何动画添加到用户按下图标时启动的启动画面.你可以添加一个default.png,但那是关于它的.设备使用此时间准备您的应用程序以进行启动.
查看其他应用,您会看到创建者通常会在其上放置带有加载字样的图片,或者根本不显示任何内容.另外,请阅读IOS Human Interface Guidelines以获取更多详细信息.
希望这有助于= D.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。