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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:19:04+00:00 2026-06-08T20:19:04+00:00

A picture’s worth a thousand words… For a bit more background, I have a

  • 0

A picture’s worth a thousand words…

enter image description here

For a bit more background, I have a UITableView leveraging iOS 5’s allowsMultipleSelectionDuringEditing set to YES. This results in the empty and filled edit controls being shown on the left of the cell any time the cell is in edit mode. This behavior is exactly what I want. I just want to change the appearance of these check marks.

I know it would be possible to write custom selection logic and basically roll my own version (like this and this), but that’s what I want to avoid. The system is already in place, and I want to re-use as much of it as possible.

  • 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-08T20:19:07+00:00Added an answer on June 8, 2026 at 8:19 pm

    This is the closest I’ve come. It’s simple and it works, while reusing almost all of the pre-baked system. It’s also a giant hack however, and relies on exploiting the undocumented view hierarchy of UITableViewCell after a little runtime introspection.

    In a nutshell, this simply hides the view normally responsible for showing the checkmark, allowing me to add my own view that can be shown in its place. I can then manipulate this stand-in view when the cell’s selection or editing state changes…

    To prevent the standard checkmark from appearing, all that’s needed is a custom -layoutSubviews implementation. It’s called, per the documentation, after both -willTransitionToState: and -setEditing:animated:, ensuring the state is always valid when either isSelected or isEditing changes.

    - (void)layoutSubviews
    {
        [super layoutSubviews];
    
        // Find the offending view, and quietly bury it...
        for (UIView* subview in [self subviews])
        {
            // As determined by NSLogging every subview's class, and guessing which was the one I wanted
            if ([NSStringFromClass([subview class]) isEqualToString:@"UITableViewCellEditControl"])
            {
                [subview setHidden:YES];
            }
        }
    
        if ([self isEditing])
        {
            // Show the custom view however you want. 
            // The value of [self isSelected] will be useful...
        }
        else
        {
            // Hide the custom view.
        }
    }
    

    I would still welcome a solution that’s a bit more… kosher.

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

Sidebar

Related Questions

Because picture (or example) is worth more than thousand words, I'll use an example:
A picture says more than a thousand words. As you can see, my fill
A picture says more than a thousand words? I would like the second (and
A picture is worth a thousand words, and I am guessing that the pictures
A picture is worth a thousand words: The app is setup for full screen
A picture is worth a thousand words - so here is the existing against
A picture is supposed to be worth a 1000 words, so let's see if
Hopefully a picture is worth a thousand lines of code because I don't want
Picture the following situation. I have an XML document as follows, <Form> <Control Type=Text
Picture says 1000 words: http://d.pr/ZeBI Basically in most other browsers, when focus on the

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.