• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others


  • Subject: 'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others
  • From: David Hoerl <email@hidden>
  • Date: Fri, 06 Nov 2015 11:04:23 -0500
  • X_v_e_cd: 14c460cd8c3343576ce3d1307c45159e
  • X_v_r_cd: aeee7932f7cd68e8425401e5e0930556

I know this is an esoteric question.

I enabled 'hidesBarsOnSwipe' in my MMSpreadSheet view controller. This UIView subclass has 4 UICollectionViews in it - two up top and two below.

The top left 'corner' controller does not scroll, and the top right does not scroll vertically. Out of the box up/down swipes work perfectly with the barHideOnSwipeGestureRecognizer to get the Navigation Bar to hide/show.

But try as I might, I cannot get the bottom two views to provide the same functionality, both of which scroll vertically. I tried adding a new UIPanGestureRecognizer to the collectionView that returns 'true' when sent the delegate message 'shouldRecognizeSimultaneouslyWithGestureRecognizer'. Interesting that I actually get asked if this new recognizer should work with both the 'barHideOnSwipeGestureRecognizer' and the CollectionView's panGestureRecognizer (I return 'true' for both).

I also configured this new recognizer to exactly match the configuration of the UICollectionViews panGestureRecognizer.

Just odd that the barHideOnSwipeGestureRecognizer has added itself to the collection view, but refuses to handle the swipe.

Any suggestions?

- David
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: 'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: NSView - trouble setting next responder on 10.10 - works okay on 10.9
  • Next by Date: runOnMainQueueWithoutDeadlocking and all its evils.
  • Previous by thread: Re: NSView - trouble setting next responder on 10.10 - works okay on 10.9
  • Next by thread: Re: 'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others
  • Index(es):
    • Date
    • Thread