As always in object oriented design, trying to use an instance class identifier is a code smell and should raise a flag. What exactly are you trying to do with your custom cell? Perhaps someone can suggest a better approach.
No, no, this is a much better design that depends on the interface (a @protocol in Objective-C) than the class, because it helps to separate the design. Define @protocol with the appropriate API that you need and your CustomCell implements this protocol. In your code, you can check:
if([cell conformsToProtocol:@protocol(MyCellProtocol)]) {
instead of testing to identify the class.
If you need only one method, you can use [cell respondsToSelector:@selector(myMethod)] .
source share