안녕하세요 이제 viewcontroller 방향에 문제가 있습니다. 다음은 내 .h 파일입니다.shouldAutorotateToInterfaceOrientation이 호출되지 않습니다
@interface IPad_HomeViewController : UIViewController <UINavigationControllerDelegate>{
UIAlertView *alertWithYesNoButtons;
}
@property (weak, nonatomic) IBOutlet UILabel *lblStatus;
@end
.m 파일에 다음과 같은 방법을 구현합니다.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
return NO;
}
그런 다음 중단 점을 만들었습니다. shouldAutorotateToInterfaceOrientation이 완전히 호출되지 않는다는 것을 깨달았습니다. 왜 전화가 안되는지 모르겠다.
pls 나에게 조언하기. 감사합니다.
해당 뷰를 표시하는 데 사용한 방법은 addSubview 또는 PresentModalViewController를 의미합니다. – Girish