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 8640095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:11:42+00:00 2026-06-12T11:11:42+00:00

I have a UICollectionView showing several items. I also have an edit button in

  • 0

I have a UICollectionView showing several items. I also have an edit button in the screen toolbar.

How can I have delete icons appear on each UICollectionViewCell when I press the toolbar edit button?

There is very little in the way of examples on google at the moment, so if anyone can point me in the right direction, that would be great.

Thanks

  • 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-12T11:11:44+00:00Added an answer on June 12, 2026 at 11:11 am

    Editing items in UICollectionViews aren’t done the same way as they’re done in a UITableView. In table views, there’s a editing mode that’ll show the delete button. But with collection views you gotta take care of that yourself.

    Initially, I solved it this way:

    - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {   
        if (self.editing) {
            // Open an action sheet with the possible editing actions
        }
    }
    

    But after that I removed the edit button and added a UILongPressGestureRecognizer to the UICollectionView. When long pressing an item I show the UIActionSheet that shows the possible actions.

    One of those options might be a possibility for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UICollectionView which I am trying to insert items into it dynamically/with
Have an app that can use tts to read text messages. It can also
I have a UICollectionView which uses UICollectionViewDelegateFlowLayout . I've added a method which changes
I have a very simple list of objects that represt people. Each object has
Have one Doubt In MVC Architecture we can able to pass data from Controller
I recently started playing with the awesome UICollectionView API, making reasonable progress, but have
I have the following code in which I am trying to take each element
OK I have a weird little issue I hope someone can help me with.
ObservableCollection s raise notifications for each action performed on them. Firstly they dont have
Have whats probably a simple problem with using parent in if and each statements

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.