目前,当点击按钮时,会出现 UIModalPresentationSheet。当它向上滑动时,我想在它的顶部添加一个导航栏。我已经尝试了很多东西,但似乎没有任何效果。这是我目前正在尝试的,它返回此错误。
AthleteAdd *addAthlete = [self.storyboard instantiateViewControllerWithIdentifier:@"addAthlete"];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:addAthlete];
//[self.navigationController pushViewController:addAthlete animated:YES];
addAthlete.delegate = self;
addAthlete.modalPresentationStyle = UIModalPresentationFormSheet;
// UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:addAthlete];
[self presentViewController:navigationController animated:YES completion:nil];
但它以模态方式将其推高,并且没有模态演示表形式。我怎样才能使导航控制器的大小正确?