so in my SomeRandomClass i have a boolean called someRandomBool. i'm attempting to access the current value of said bool thru AnotherClass:
... doesn't work.
Code:
#import <UIKit/UIKit.h>
@class SomeRandomClass;
@interface AnotherClass : UIViewController
{
SomeRandomClass *someRandomClassInstance;
}
@property (nonatomic, retain) IBOutlet SomeRandomClass *someRandomClassInstance;
@end
-=-=-=-
#import "AnotherClass.h"
#import "SomeRandomClass.h"
@implementation AnotherClass
@synthesize someRandomClassInstance;
- (void)loadView
{
if (someRandomClassInstance.someRandomBool == YES)
NSLog(@"Bool Is YES");
else
NSLog(@"Bool Is NO");
}
@end
... doesn't work.