Hiện tại, khi một nút được nhấn vào, một UIModalPresentationSheet xuất hiện. Tôi muốn thêm một thanh điều hướng ở trên cùng của điều này khi nó trượt lên. Tôi đã thử rất nhiều thứ nhưng không có gì có vẻ hiệu quả. Đây là những gì tôi hiện đang cố gắng và nó trả về lỗi này.Bộ điều hướng trong chế độ xem phương thức
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];
Nhưng nó đẩy nó lên một cách bình thường và không có biểu mẫu dưới dạng modalpresentations. Làm thế nào tôi có thể làm cho nó để điều khiển chuyển hướng có kích thước chính xác?
này hoạt động, nhưng nó không còn là một modalsheetpresentation .. –
Có một cái nhìn để chỉnh sửa của tôi;) –