私はこれを試します:
ViewController.h
@class SecondView;
@interface Introduccion : UIViewController{
SecondView *second;
}
-(IBAction)AnimatecreditsPage:(id)sender;
@end
ViewController.m
-(IBAction)AnimatecreditsPage:(id)sender{
second = [[SecondView alloc]initWithNibName:@"SecondView" bundle:nil];
second.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:second animated:YES];
}
ストーリーボードを使用していますが、すでにビューコントローラーを対応するクラスにリンクしています。ボタンを押すと、iPhone シミュレーターがクラッシュするだけです。ナビゲーションコントローラーとタブバーコントローラーを使用しています。
ありがとう!!:) 私を助けてください。