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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:05:29+00:00 2026-05-18T22:05:29+00:00

i am creating a Custom reusable UITableViewCell with Three labels and one imageView,and i

  • 0

i am creating a Custom reusable UITableViewCell with Three labels and one imageView,and i am removing them in cell’s dealloc method…
all is working fine but the problem is the text in cell getting Dark while selected…
it and it is kind of overlapping on each other

help me to avoid that problem…

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
{
    NSLog(@"Address for cel called");
    NameLbl = [[UILabel alloc] initWithFrame:CGRectMake(5,5,140,20)];
    [self.contentView addSubview:NameLbl];
    NameLbl.font =[UIFont fontWithName:@"Times New Roman" size:15];
    NameLbl.font = [UIFont boldSystemFontOfSize:15];
    NameLbl.opaque=YES;
    NameLbl.tag = 1001;

    AddressLbl  = [[UILabel alloc] initWithFrame:CGRectMake(5,25,140,20)];
    [self.contentView addSubview:AddressLbl];
    AddressLbl.font =[UIFont fontWithName:@"Times New Roman" size:15];
    AddressLbl.opaque=YES;
    AddressLbl.tag = 1002;

    CityStateZipLbl = [[UILabel alloc] initWithFrame:CGRectMake(5,50,150,20)];
    [self.contentView addSubview:CityStateZipLbl];
    CityStateZipLbl.opaque=YES;
    CityStateZipLbl.tag = 1003;
    CityStateZipLbl.font =[UIFont fontWithName:@"Times New Roman" size:15];

}
return self;
}



- (void)dealloc {
[CityStateZipLbl release];
[NameLbl release];
[AddressLbl release];

[super dealloc];
}
  • 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-18T22:05:30+00:00Added an answer on May 18, 2026 at 10:05 pm

    @balu :

    I think what you trying to say is that when you select a cell the text color of the Label remains black it doen’t change to white ?

    If you want to configure highlighted state then

    for UILabel use

    UILabel *label;

    [label setHighlightedTextColor:[UIColor whiteColor]];

    Otherwise you can upload a screen shot for it 🙂 ..

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

Sidebar

Related Questions

I was working on creating a reusable custom control (not a user control) in
Does anybody know of a method for creating custom Performance Counters using ordinary unmanaged
I'm creating a custom UITableViewCell , similar in style to UITableViewCellStyleValue1 but with an
I am just learning about app.config in respect of creating custom sections. I have
In WPF, we are creating custom controls that inherit from button with completely drawn-from-scratch
I'm creating a custom drop down list with AJAX dropdownextender. Inside my drop panel
I'm creating some custom work items in TFS and the helptext field seems handy
I'm creating a custom drag helper (in jQuery): $('.dragme', element).draggable({ appendTo: 'body', helper :
I'm creating a custom Java Struts tag that is for building and formatting an
I am creating a custom WPF control that let's say for simplicity sake has

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.