Reputation: 71
I have a scrollView with its content view and finally a subview on the content view.
I would like to stop scrolling [scrollView scrollEnabled:NO]
from the subview. Can I get at the method?
Upvotes: 1
Views: 8585
Reputation: 282
I don't have Xcode in front of me, but can't you get at the superview with self.superview
from your subview code?
For instance, like so:
[subview.superview scrollEnabled:NO];
Upvotes: 4
Reputation: 7227
To stop scrolling [scrollView scrollEnabled:NO]
from the subview? Maybe you need a viewController which control the views. Do you clear about the MVC?
Upvotes: 0