-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
UICollectionView canPerformAction / shouldShowMenuForItemAtIndexPath #458
Comments
@ghazel - yes this would be preferable. the reason it is the way it is now is because using these methods on awhile back i tried to implement the collectionView methods instead, and then adjust the frame of the menu, but had no luck. |
Here's an attempt to move the |
Wow, that does seem like more work than I expected. Why not handle the menu in the cell, but dispatch actions and canPerform to the collection? |
@ghazel - yeah it makes me 😢 - the real problem is that when the
That's an interesting idea. How exactly do you think this should work? You want to submit a PR? 😄 |
Here's what I was thinking: #463 |
Similar to #393, I would like to add menu items to some cells and disable the menu for others. It seems like the UICollectionView has some great functions for this (collectionView:canPerformAction:forItemAtIndexPath:withSender: collectionView:shouldShowMenuForItemAtIndexPath: etc) but JSQMessagesViewController doesn't use them.
Does it make sense to modify JSQMessagesCollectionViewCell to delegate to the collection view's delegate for menu handling?
The text was updated successfully, but these errors were encountered: