What does it mean \"unrecognized selector sent to instance\"
in Xcode
?
I received this error due to not assigning the custom class to the view in the Interface Builder.
NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed:@"EventsFilterView" owner:self options:nil];
self.filters = [subviewArray objectAtIndex:0];
The variable self.filters
was assigned to the EventFilterView
class but the actual view in the xib file was not.
Hope this helps someone.