プロジェクトにいくつかのタイトルを追加しようとしています。したがって、アプリが読み込まれると、アクティビティインジケーターが回転するタイトル画面が表示され、3秒後にナビゲーションコントローラーが押されます。基本的に、最初のViewControllerに画像があります。そこで、IBで画像ビューを追加して画像を設定しました。最初のViewControllerがロードされた後、2番目のViewControllerをロードする方法を教えてください。
基本的に、ボタンやその他のコントロールを使用せずに、特定の時間遅延後にナビゲーションコントローラーを押す方法を教えてください。
いつもありがとうございます。
編集
- (void)viewDidLoad {
[super viewDidLoad];
[indicator startAnimating];
timer=[NSTimer scheduledTimerWithTimeInterval: 3.0 target:self selector:@selector(loadNextView) userInfo:nil repeats: YES];
}
-(void)loadNextView
{
TabBarControllers *tabBar=[[TabBarControllers alloc]initWithNibName:@"TabBarControllers" bundle:nil];
[self.navigationController pushViewController:tabBar animated:YES];
[indicator stopAnimating];
}