Showing posts with label How to find any view in another view. Show all posts
Showing posts with label How to find any view in another view. Show all posts

Sunday, August 29, 2010

To find any object in a view

here I am searching for a button in a AlertView.


for (UIView *v in [myAlertView subviews]) {
if ([v isKindOfClass:[UIButton class]]) {
//IF I AM THE RIGHT BUTTON
[v addSubview:myUIImageView];
}
}