Nếu iPad của tôi ở chế độ ngang và trình bàyModalViewController được gọi là chế độ xem tự động chuyển sang chế độ dọc. Bất kỳ giải pháp?vấn đề với hiện tạiModalViewController
UIViewController * start = [[UIViewController alloc]initWithNibName:@"SecondView" bundle:nil];
start.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
start.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:start animated:YES];
Trong SecondView Tôi đã thêm:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
điều này đã xảy ra với tôi - tôi chưa tìm ra, vì vậy hy vọng ai đó phản hồi :) – Conceptdev
Giải pháp rất dễ dàng: Vào Trình xây dựng giao diện và kết nối ViewController của bạn một cách chính xác với lớp học của bạn. Điều đó làm việc cho tôi –