あるxibから別のxibに移動しようとしていて、TabBarを使用しています。xibからxibに移動すると、TabBarがPresentModalViewController
失われます。
私がこのように使用すると、失敗します(Androidの強制終了のように):
FirstViewController *fvc = [[FirstViewController alloc]initWithNibName:@"FirstViewController" bundle:nil];
[fvc setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
fvc.userSelectedLatitude = saveLatitude;
fvc.userSelectedLongitude = saveLongtitude;
UITabBarController *tabControl = [[UITabBarController alloc] initWithNibName:fvc bundle:nil];
[self presentModalViewController:tabControl animated:NO];
私が使用するとき:
UITabBarController *tabControl = [[UITabBarController alloc] initWithNibName:@"FirstViewController" bundle:nil];
TabBarで黒い画面が表示されます。
それはすべて失敗するので、私はそれが正しい方法ではないと思います。それで、それを行う正しい方法は何ですか?