Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing scroll gesture to UIScrollView from another view

I do have a view that has a UIScrollView and over it there is a view that display some text. When the user swipes over this view that contains text the UIScrollView won't scroll. How to make this view transparent in a way it relays the swipe gesture to UIScrollView.

Thanks

like image 976
mukaissi Avatar asked Nov 14 '22 07:11

mukaissi


1 Answers

You can just set

myTextView.userInteractionEnabled = NO;

Or, if you're creating your view with Interface Builder, there's a check box there called 'User interaction enabled', just uncheck that.

like image 50
filipe Avatar answered Dec 10 '22 02:12

filipe