Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9159043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:23:49+00:00 2026-06-17T13:23:49+00:00

The Apple documentation about doing CollectionViews says that the default behavior is for a

  • 0

The Apple documentation about doing CollectionViews says that the default behavior is for a long press to bring up the Edit Menu. It goes on to say that you must implement 3 delegate methods, and that’s it.

I have a CollectionView that extends UICollectionViewController (and thus implements the data source delegate), and I implemented the delegates, but they are never being called. This CollectionView is setup in Interface Builder.

I dragged out a Long Tap Gesture Recognizer and made a method, and yes, it detects it, but that does me no good. According to the docs, the cell should detect the long tap and invoke the delegate.

The docs are really lame on this, which is too bad. CollectionViews are great, but seriously, this just does not work as advertised.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:23:50+00:00Added an answer on June 17, 2026 at 1:23 pm

    Implement all, please check UICollectionView.h in UIKit.framework

    // These methods provide support for copy/paste actions on cells.
    // All three should be implemented if any are.

    - (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath{
    return YES;
    }
    
    - (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender{
    return YES;
    }
    
    - (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender{
    //your action
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read apple documentation to assert that I was doing the memory management correctly
Apple does say in the documentation about the fact that they do not want
I've read in Apple's documentation about UINavigationController's resizing behavior and it hasn't been much
Apple really had bad documentation about how the provider connects and communicates to their
According to Apple documentation and other documentation I have read about on disk encryption
I have read in the Apple Documentation that we can use optional parameters in
I'm reading apple's documentation about Memory Management for Dispatch Queues: Even if you implement
I have read about NSPasteBoard in the Apple documentation, and how it allows for
There appears to be zero documentation about the SUBQUERY keyword from Apple and I
i'm working with UILocalNotification, and i have read the apple documentation about it at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.