I am using the following to try to access all the UIButtons located inside of a UIScrollView within a UIView. The problem is that the code doesn't seem to locate the buttons and set the border property.

UIView -> UIScrollView -> UIButtons.

I basically want to loop through the buttons and set the border property.

for(UIView *v in [self.viewLightLeakChoices subviews]) {

    if([v isKindOfClass:[UIButton class]]) {

        v.layer.borderWidth = 0;

    }

}

Related posts

Recent Viewed