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

  • Home
  • SEARCH
  • 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 6617965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:46:01+00:00 2026-05-25T20:46:01+00:00

i have an awkward problem where calling to [self invalidateModel]; does not redraw my

  • 0

i have an awkward problem where calling to [self invalidateModel]; does not redraw my custom cells.

I have a TTTableViewController with an action sheet that allows to order the display of a table when pressed. The data gets redrawn correctly but the cells are not redrawn. Instead there are reused.

To illustrate better :
In my - (void)layoutSubviews { of my CustomTableItemCell class i have this :

if (bookmarked) {
        UIImage *bookmark = [UIImage imageNamed: @"bookmarked@2x.png"];
        TTImageView *bookmarkView = [[TTImageView alloc] init];
        bookmarkView.defaultImage = bookmark;
        bookmarkView.frame = CGRectMake(297, 0, 16, 27);
        [self.contentView addSubview:bookmarkView];
        TT_RELEASE_SAFELY(bookmarkView);
}

Basically if I get a bookmarked item, I want to display a ribbon on the right of my cell. This ribbon gets display correctly.
When I reorder my cell with the action sheet method and call invalidateModel, the first cell which didn’t have any ribon gets putten at a place where was previously a ribbonned item but without redrawing the cell, thus giving a ribon to an item without ribbon.

Code source :
This is my createDatasource function of my TTTableViewController :

- (void)createModel {
    self.dataSource = [ServiceRequestDetailedDataSource viewDataSource:self.typeOfAction andOrderBy:orderBy];
    // If dataSource nil, show an empty Message
    if (self.dataSource == nil) {
        [self showEmpty:YES];
    }
}

This is my action sheet action of my TTTableViewController that change the orderBy and calls invalidate model :

-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
    if (buttonIndex == 0) {
        self.orderBy = @"portfolio";
    [self invalidateModel];
}

Any tips would be great, I am really stuck here :'(

  • 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-25T20:46:02+00:00Added an answer on May 25, 2026 at 8:46 pm

    Found it, just use reuseidentifier. My bad.

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

Sidebar

Related Questions

I have an awkward situation in which I have a 32-bit lib that must
this seems really awkward ...does anybody have any suggestions for a cleaner approach? bool
I have a kinda awkward problem, I'm working with C# and WPF in .NET
I have a FluentValidation validator that I want to use to validate a booking.
So, I currently have a Board class that is composed of Piece s. Each
I have this page: http://www.problemio.com/problems/problem.php?problem_id=214 On it there is a link suggest a solution
I have a 2-dimensional array in Ruby that I want to produce a working
I have the following problem. I have brain regions and correlations between them. The
I came across an interesting problem today. I have a text email I'm sending
I have come across an awkward situation where I would like to have a

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.