Hi all,
i'm getting this error during the build of my app following the code below.
I have 3 classes:
ClassA (UIViewController)
ClassB (UIViewController)
ClassC (NSObject)
Inside ClassA i have a property defined as ClassB.
ClassB has a property defined as ClassC.
ClassC ha some properties inside
The error is inside ClassA on the line:
in this same class i initialize ClassB as per follow code
How can i use ClassC properties whitin ClassB?
Ciao,
stè
i'm getting this error during the build of my app following the code below.
I have 3 classes:
ClassA (UIViewController)
ClassB (UIViewController)
ClassC (NSObject)
Inside ClassA i have a property defined as ClassB.
Code:
@property (nonatomic, retain) ClassB *B;
ClassB has a property defined as ClassC.
Code:
@property (nonatomic, retain) ClassC *C;
ClassC ha some properties inside
Code:
@property (nonatomic, retain) NSString *Prop1;
@property (nonatomic, retain) NSString *Prop2;
The error is inside ClassA on the line:
Code:
txtTest.text = self.ClassB.ClassC.Prop1;
in this same class i initialize ClassB as per follow code
Code:
self.B = [[ClassB alloc] init];
How can i use ClassC properties whitin ClassB?
Ciao,
stè