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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:50:27+00:00 2026-05-16T17:50:27+00:00

some time ago someone already asked this question and a few answers were given

  • 0

some time ago someone already asked this question and a few answers were given but i didn’t really understand any of them. So i was wondering if anyone could please write an easy to understand tutorial on how to do the things shown on the image below:

http://img208.yfrog.com/img208/6119/screenshotkmr.png

I would be so greatful if anyone can share exactly how to this because it looks really cool and i would love to use something similar in my application :-)!

  • 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-05-16T17:50:27+00:00Added an answer on May 16, 2026 at 5:50 pm

    Make a unchecked and checked image..

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
        static NSString *CellIdentifier = @"Cell";
    
        UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
        }
    
        if ([selectedRowsArray containsObject:[contentArray objectAtIndex:indexPath.row]]) {
            cell.imageView.image = [UIImage imageNamed:@"checked.png"];
        }
        else {
           cell.imageView.image = [UIImage imageNamed:@"unchecked.png"];
        }
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleChecking:)];
        [cell.imageView addGestureRecognizer:tap];
        cell.imageView.userInteractionEnabled = YES; //added based on @John 's comment
        //[tap release];
    
        cell.textLabel.text = [contentArray objectAtIndex:indexPath.row];
        return cell;
    }
    
    - (void) handleChecking:(UITapGestureRecognizer *)tapRecognizer {
        CGPoint tapLocation = [tapRecognizer locationInView:self.tableView];
        NSIndexPath *tappedIndexPath = [self.tableView indexPathForRowAtPoint:tapLocation];
    
        if ([selectedRowsArray containsObject:[contentArray objectAtIndex:tappedIndexPath.row]]) {
            [selectedRowsArray removeObject:[contentArray objectAtIndex:tappedIndexPath.row]];
        }
        else {
            [selectedRowsArray addObject:[contentArray objectAtIndex:tappedIndexPath.row]];
        }
        [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:tappedIndexPath] withRowAnimation: UITableViewRowAnimationFade];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some time ago I was asked the strange question how would I implement map
I've seen this somewhere in SO some time ago, but I couldn't find it
some time ago I happend to resolve a PG related problem with this SO
Some time ago i posted a question related to a WriteableBitmap memory leak, and
Some time ago I created this LAMP based web. At the time I wrote
I learned java generics some time ago, but now I'm learning collections and found
I have spent a lot of time researching this, but perhaps someone point me
I found this some time ago and have been using it since; however, looking
What does Emacs' learning curve (actually) look like? Some time ago, someone gave a
I posted a question some time ago on MSDN forum involving the following code.

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.