I have a custom object, Spaces:
Spaces
#import \"Spaces.h\" @implementation Spaces @synthesize spaceName; @synthesize spaceUsers; @synthesize spaceIcon;
Perhaps your aSpace = [spaces objectAtIndex:[indexPath row]]; is not returning a Space object. Perhaps before you try and use it you test to make sure with something like if ([aSpace class] == [Spaces class])
aSpace = [spaces objectAtIndex:[indexPath row]];
if ([aSpace class] == [Spaces class])