ios - UIScrollView contained inside of UICollectionViewCell not passing touch event to the CollectionView cell -


i have uiscrollview inside uicollectionviewcell can zoom image within scrollview. when click image collectionviewcell receive event , pass uicollectionview delegate.

i tried adding following uigesturerecognizerdelegate container of uiscrollview:

-(bool)gesturerecognizer:shouldreceivetouch: 

according answer read touch event should passed on parent view - in case collectionviewcell, isn't happening.

what should do?

edit please note i'm not trying pinch zoom inside cell rather able receive touch events of cell.

thats question having same problem. way uicollectionviewcell respond touches (intercepted uiscrollview) set

userinteractionenabled = no 

on scrollview.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -