can not access property value
I am trying to get the value of a property, but the compiler is giving me the error: Accessing unknown 'appointmentsForDate ' component of a property. The properties are properly declared and synthesized.
eg: SchedulerViewController *superController;
@property (nonatomic, assign) SchedulerViewController *superController;
@synthesize superController;
here is my error---> [self.superController.appointmentsForDate objectAtIndex:indexPath.row]
Than I changed it to [[self.superController appointmentsForDate] objectAtIndex:indexPath.row]; and get the warning: No appointmentsForDate method found. the appointmentsForDate property is also declared and synthesized properly. Any ideas?
Try using the older syntax:
NSLog(@"what is this: %@",[[self superController]appointmentsForDate]);
If you're still stuck, please let me a see the code for SchedulerViewController (both the .h and .m) It looks like the compiler's having a panic attack and can't find your appointmentsForDate declaration.