I have setup a class with the following: MESSidePanelViewControllerSubClass Header file
@property BOOL setLandscapeOK;
Imp file
- (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;
}
I now want to update the value from another file (view controller).
LoginViewController
Other view controller imp file
- (NSInteger)supportedInterfaceOrientations {
// Restriction for the welcome page to only allow potrait orientation
NSLog(@"Login-supportInterfaceOrientations");
MESSidePanelViewControllerSubClass* setLandscapeOK = YES;
return UIInterfaceOrientationMaskAll;
}
I get an error:
Implicit conversion of 'BOOL' (aka 'signed char') to 'MESSidePanelViewControllerSubClass *' is disallowed with ARC
How should I be updated the BOOL value in another file?