Hello.
I have the following code:
In .h:
interface .... {
int CatID;
...
}
@property (readwrite) int CatID;
.m:
// Already includes the header file (.h)
implementation ... {
@synthesize CatID;
....
- (void)setCatIDa:(int)cid {
self.CatID = 20;
NSLog(@"cat id: %d", CatID); // this returns 20
}
- (IBAction)someTest:(id)sender {
NSLog(@"cat id: %d", CatID); // returns 0
}
}
How come its returning 0?
Also the NIB views are changing between the set and get