开发者

Accessing superview ScrollView?

开发者 https://www.devze.com 2023-01-17 13:22 出处:网络
i added some views (ever开发者_Go百科y view has its own viewcontroller and nib) to an UIScrollView. How can I access the ScrollView fromwithin the UIViews I\'ve added?

i added some views (ever开发者_Go百科y view has its own viewcontroller and nib) to an UIScrollView. How can I access the ScrollView from within the UIViews I've added?

self.view.superview doesn't get me the UIScrollView properties. I need to disable scrollEnabled from within an UIView.

Thank you!


Maybe try (UIScrollView*)(self.view.superview).property to access the property you want :-) It should work.

But maybe with an Delegate it would be better :-p

Good Luck !

0

精彩评论

暂无评论...
验证码 换一张
取 消