Lefora Free Forum
login join
Loading
482 views

can not access property value

Page 1
1–3
novice - member
27 posts

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?


novice - member
27 posts

SOLVED

?
288 posts

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.

__________________
Page 1
1–3

Locked Topic


You must be a member to post in this forum

Join Now!