几个应用程序用来呈现一个介绍视图的秒数。我怎么能编码呢?我使用计时器模态视图或什么?thks
答案 0 :(得分:1)
选中此link
或代码如下,
在App Delegate的界面中:
@interface AppDelegate : NSObject
{ UIImageView * splashView; }
在实施中:
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:tabBarController.view];
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,480)]; splashView.image = [UIImage imageNamed:@“Default.png”]; [window addSubview:splashView]; [window bringSubviewToFront:splashView];
//耗费时间进行设置
[splashView removeFromSuperview]; [splashView发布]; }
答案 1 :(得分:0)
您可以将您的介绍视图置于最前面,然后使用NSTimer将其关闭。