Error: unrecognized selector sent to instance

前端 未结 2 599
清酒与你
清酒与你 2021-01-24 00:47

I have a custom object, Spaces:

#import \"Spaces.h\"


@implementation Spaces

@synthesize spaceName;
@synthesize spaceUsers;
@synthesize spaceIcon;         


        
相关标签:
2条回答
  • 2021-01-24 00:58

    It sounds like [cell spaceName] has been autoReleased. I cannot see how you have defined that, but take a look at that part of your code.
    If you need more help, you need to provide more code.

    0 讨论(0)
  • 2021-01-24 01:18

    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])

    0 讨论(0)
提交回复
热议问题