'isMemberOfClass' returning 'NO' when custom init [duplicate]
Possible Duplicate: isMemberOfClass returns no when ViewController is instantiated from UIStoryboard I recently stumbled over a weird problem: I was implementing simple Testcases and using the NSObject isMemberOfClass method to check for class equality. Additionally I implemented a custom init: -(id)initWithMessage:(NSString *)message If I replace id with the right class name the isMemberOfClass will return 'YES'. Otherwise it will fail. The interesting part is: The class Method will return the right Class every time. Is this a bug? Or is it supposed to work that way? Thanks.. EDIT: Ok this