次のクラスをセットアップしました: MESSidePanelViewControllerSubClass ヘッダー ファイル
@property BOOL setLandscapeOK;
インプファイル
- (NSInteger)supportedInterfaceOrientations {
// Restriction for the welcome page to only allow potrait orientation
if (setLandscapeOK == YES) {
NSLog(@"Reveal-setting all");
return UIInterfaceOrientationMaskAll;
}
NSLog(@"Reveal-setting portrait");
return UIInterfaceOrientationMaskPortrait;
}
別のファイル(View Controller)から値を更新したいと思います。
LoginViewController その他のビュー コントローラの imp ファイル
- (NSInteger)supportedInterfaceOrientations {
// Restriction for the welcome page to only allow potrait orientation
NSLog(@"Login-supportInterfaceOrientations");
MESSidePanelViewControllerSubClass* setLandscapeOK = YES;
return UIInterfaceOrientationMaskAll;
}
エラーが発生します:
Implicit conversion of 'BOOL' (aka 'signed char') to 'MESSidePanelViewControllerSubClass *' is disallowed with ARC
別のファイルの BOOL 値を更新するにはどうすればよいですか?