Question: I am parsing through the subviews of a parent view,
It has various subviews, all custom classes, of 10 different UIView subclasses.
There is just one class which is a normal UIView.

Now when I am looping thru, I need to get hold of the UIView subview, isKindOfClass is failing to do so as it returns 1 for all the UIView subclasses as well.

Do I have to write a a big if-else construct to check if its an object of any other custom UIView subclass and then in the last else come to a conclusion that its a normal UIView.

Or is there a method that tells me exact class of the view ?

Answer: 
You shoud use :

```
[currentView isMemberOfClass:[UIView class]];

```
<http://developer.apple.com/library/ios/documentation/cocoa/reference/foundation/Protocols/NSObject_Protocol/Reference/NSObject.html#//apple_ref/occ/intfm/NSObject/isMemberOfClass>: