Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Release 5.3.0

Compare
Choose a tag to compare
@jessesquires jessesquires released this 01 Sep 19:36
· 660 commits to master since this release

What's new

  • Improved handling of the copy menu (UIMenuController) for a cell (activated by a long press gesture on a cell). It is now much more reliable and does not dismiss the keyboard when appearing.
  • You can now add your own custom menu options/actions to the menu! Simply override the following delegate methods in your view controller subclass. Don't forget to call super at the end of each.
- (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath;

- (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender;

- (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender;
  • New properties available on JSQMessagesCollectionViewCell! The following private properties have now been exposed. Use with caution. See the most recent documentation for details.
@property (weak, nonatomic, readonly) UIView *messageBubbleContainerView;
@property (weak, nonatomic, readonly) UIView *avatarContainerView;
  • The following has been removed from JSQMessagesCollectionViewCell. (Due to the changes regarding the UIMenuController above)
@property (weak, nonatomic, readonly) UILongPressGestureRecognizer *longPressGestureRecognizer;

Issues resolved