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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:34:33+00:00 2026-05-21T05:34:33+00:00

I use TTTableSubtitleItem to crete the cells for a table. I then use didSelectObject

  • 0

I use TTTableSubtitleItem to crete the cells for a table. I then use didSelectObject to sent an object to the detail view controller. To prevent the message being sent twice I have to set the TTTableSubtitleItem URL to nil. Because of this the Disclosure Button will not display?

    [TTTableSubtitleItem itemWithText:[chunks objectAtIndex: 0] 
                                 subtitle:@"Link To Website"
                                 imageURL:@""
                             defaultImage:[UIImage imageNamed:@"map.png"]
                                      URL:nil 
                             accessoryURL:@"http://www.google.com"];
  • 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-21T05:34:34+00:00Added an answer on May 21, 2026 at 5:34 am

    I had this same issue and the way I got around it was by subclassing the item cell (so for you it’d be TTTableSubtitleItemCell and overriding the setObject method to manually include the disclosure button as follow:

    - (void)setObject:(id)object {
    if (_item != object) {
      [_item release];
      _item = [object retain];
    
      [super setObject:object];
    
      self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    

    I also used this method to allow myself to have the selection style still be blue even though I wasn’t handling the URL in the expected way. This would happen by also just adding

      self.selectionStyle = UITableViewCellSelectionStyleBlue;
    

    right after the other call.

    Note you’ll also need to add the mapping between the items you care about and this new custom item cell in your data source. This requires overriding one method in a custom data source. If you want all of your TTTableSubtitleItems to have the disclosure button, you can map TTTableSubtitleItem to your new custom item cell. Otherwise just create a custom subclass of TTTableSubtitleItem as well that doesn’t make any changes to it. Assuming your two new subclasses are CustomItem and CustomItemCell your data source would override the following method to look like so:

    - (Class)tableView:(UITableView *)tableView cellClassForObject:(id)object {
      if ([object isKindOfClass:[CustomItem class]]) {
        return [CustomItemCell class];
      } else {
        return [super tableView:tableView cellClassForObject:object];
      }
    }
    

    Hope this helps

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

Sidebar

Related Questions

USE [Fk_Test2] GO /****** Object: Table [dbo].[Owners] Script Date: 08/20/2010 16:52:44 ******/ SET ANSI_NULLS
When I use the TTLauncher to call a TTTableViewController the table is loaded correctly
Use case: 3rd party application wants to programatically monitor a text file being generated
Use of Unassigned local variable 'model'. Is what error message I'm getting. Its right
USE Pooja GO ----Create TestTable CREATE TABLE TestTable(RtJobCode VARCHAR(20), RtProfCode smallint,RtTestCode smallint,ProfCode smallint,TestCode smallint)
Use: The user searches for a partial postcode such as 'RG20' which should then
use ThreadPool.QueueUserWorkItem (WaitCallback, Object) to start a thread with my target method and data.
use Text::Table; my $tb = Text::Table->new(Planet,Radius\nkm,Density\ng/cm^3); $tb->load( [ Mercury,2360,3.7], [ Mercury,2360,3.7], [ Mercury,2360,3.7], );
Use of rails 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when
Use case: I'm using data templates to match a View to a ViewModel. Data

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.