Dipti Y W Dipti Y W - 1 year ago 69
Objective-C Question

How to find the kind of subview object the view is containing in it?

I am trying to find a specific class object added as Subview to a UIView, but i could not find anything.

Can anyone help me please.

Answer Source
for(UIView *aView in yourView.subviews){
     if([aView isKindOfClass:[YourClass class]]){
       //YourClass found!!