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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:59:58+00:00 2026-06-17T07:59:58+00:00

I have a UITableView with the following layout TableView -> CustomCell –> CustomLabel My

  • 0

I have a UITableView with the following layout

TableView
 -> CustomCell
 --> CustomLabel

My custom label has some drawing code that if a property @property (nonatomic) bool animated; is YES, it will draw the contents animated, and if it is NO, will draw it’s contents without animation.

By default bool animated is NO.

So when the table view intially loads it’s data and redraws the cell, the content is draw without animation.

Now this is where I become unstuck.

The effect I’m after is that when a user clicks the cell, the data for the cell is updated and the content gets redrawn animated.

I trigger this like so,

[sender setTitle:newValue forState:UIControlStateNormal];
cell.noteTitle.animated = YES;
[self.tableView beginUpdates];
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:pathOfTheCell, nil] withRowAnimation:UITableViewRowAnimationNone];
[self.tableView endUpdates];

The problem is that while I am setting,

cell.noteTitle.animated = YES;

when I call

cell.noteTitle.animated = YES;

it seems to create a new instance of the CustomCell which as I’ve described above, has animated = NO.

So my question is this, how can I call my draw my custom cell, so that it doesn’t animate the when table loads the cell, but does animate when the user changes the cell value.

  • 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-17T07:59:59+00:00Added an answer on June 17, 2026 at 7:59 am

    As I was rewriting this question, I stumbled upon the answer.

    In didSelectRowAtIndexPath I store the current selected path, then in

    cellForRowAtIndexPath check if the current cell being drawn in the one that was selected, then set the animated property accordingly

    if ([indexPath isEqual:self.currentSelectedIndexPath]){
        cell.noteTitle.animated = YES;
    }else{
         cell.noteTitle.animated = NO;
    }
    

    Thanks for the help guys, I realise I should have included more code in the original question

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

Sidebar

Related Questions

I have following code of cellForRowAtIndexPath method: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
I have the following code - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString
I have the following code in my didSelectRowAtIndexPath delegate method: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
I have a UITableView with the following code: - (void)viewDidLoad { [super viewDidLoad]; parser
I am creating an App with following design: I have a UITableView with custom
I have the following: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.row==0) { static
I have the following Objective-c Function - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger
I have a newbie question about the following: - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
I have the below code - (UITableViewCell *)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
In my storyboard, I have a UITableView and it has the following Properties Style:

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.