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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:52:25+00:00 2026-05-25T12:52:25+00:00

Hi guys i am having a strange problem in my application. i have a

  • 0

Hi guys i am having a strange problem in my application. i have a custom cell for my tableview and i have a button on my cell. i have to add favorites an unfavorites functionality on that button so if that button is tapped then it will make the item favorite on that cell and button will be in selected state and if user tap it again then it will be unselected. JUST LIKE CHECK BOX.
Problem that when i select one button then it 5th button also. for instance if i select button on 3rd index then it will select button on index 8 also.

any body faced this problem? Can any body help me?

  • 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-25T12:52:26+00:00Added an answer on May 25, 2026 at 12:52 pm

    The problem is because of you are reusing your cells. So when you select cell at index 0 and if there are 4 visible cells then when you scroll down cell with index 5 will reuse cell at index 0 and it will be selected too.

    To resolve that issue you should always configure cells in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath and reset to default all properties that could be changed or are individual to different cells.

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

Sidebar

Related Questions

HI Guys, Here I am having problem that How can I post an image
H guys. I'm developing a custom component for SSIS. I'm having a problem when
I'm having a strange problem, that I've been trying to solve for too long.
Hi guys I'm having a strange symfony problem. I'm developing currently on my localhost
Hi guys I am having a very strange problem in ie with the append
Hey guys I'm having such a hard time of it today. I have a
Hey guys, I'm having a problem with IE7, my menu always drops down behind
Hi guys i've never written a comparator b4 and im having a real problem.
I'm having a strange problem here, and I can't manage to find a good
Hello guys Im having a problem in how to clear the previous activity after

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.