현재 버튼을 탭하면 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];
그러나 modalpresentationsheet 양식없이 모달 적으로이를 밀어냅니다. 내비게이션 컨트롤러의 크기를 올바르게 조정하려면 어떻게해야합니까?
이 작동하지 않습니다,하지만 더 이상 modalsheetpresentation입니다 .. –
내 편집을 보라) –