The parent class A has a subview B and that subview has another subview C, this is what i want to hide or apply code to (C)
How ?
B is the third subview of A and C is the second subview of B.
They’re like this:
|A
||B “UIView”
||B “UIView”
||B "UIView"
|||C
|||C (i want to access this)
|||C
I already tried
%hook A
-(void)layoutSubviews {
for (C *view in subviews[2].subviews)
%orig;
view.hidden = YES;
%end
but no luck.