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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:55:06+00:00 2026-05-23T09:55:06+00:00

I have built a custom UITableView with two cells. In one cell I have

  • 0

I have built a custom UITableView with two cells. In one cell I have added a UIImageView, in another a UILabel. when I click on the cell with the UILabel an unwanted keyboard pops up with a blinking cursor. I have checked to make sure I am not using a duplicate reuse identifier. Why is this happening? I thought UILabels don’t call the keyboard. How can I get rid of this? Is there a way to access the cell through a delegate method like

- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath

???

Thanks in advance for your help. Here is my code:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{   
 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:qRViewCellIdentifier];

 NSUInteger row = [indexPath row];
 if (cell == nil)
 {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:qRViewCellIdentifier] autorelease];

  if (row == kQRRowIndex)
  {
   CGRect imageRect = CGRectMake(10,10.0,255.0,255.0);
   UIImageView *qRImageView = [[[UIImageView alloc] initWithFrame:imageRect] autorelease];
   qRImageView.tag = row;
   [cell.contentView addSubview:qRImageView];
   cell.selectionStyle = UITableViewCellSelectionStyleNone;
  }
  else
  {
   CGRect labelRect = CGRectMake(10,10.0,255.0,25.0);
   UILabel *fastPayLabel = [[UITextField alloc] initWithFrame:labelRect];
   fastPayLabel.tag = row;
   [cell.contentView addSubview:fastPayLabel];
  }
 }

 if (row == kQRRowIndex)
 {
  UIImageView *qRImageView = (UIImageView *)[cell viewWithTag:kQRRowIndex];
  qRImageView.image = [[UserManager sharedUserManager] qRImage];
 }
 else
 {
  NSString *message = [NSString stringWithString:@"Enable Fast Pay"];

  UILabel *fastPayLabel = (UILabel *)[cell viewWithTag:kFastPayRowIndex]; 
  fastPayLabel.textAlignment = UITextAlignmentCenter;
  fastPayLabel.text = message;
  fastPayLabel.font = [UIFont boldSystemFontOfSize:20];
 }

 return cell;
}
  • 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-23T09:55:06+00:00Added an answer on May 23, 2026 at 9:55 am

    Man, you have a typo here: UILabel *fastPayLabel = [[UITextField alloc] initWithFrame:labelRect];.
    Instead of allocating UILabel object, you’re actually allocating UITextField… =)

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

Sidebar

Related Questions

So I've built a custom cell for a UITableView. My subclassed UITableViewCell has a
I just have a quick best practice question regarding custom cells in a UITableView.
I have a UITableView with custom cells that were defined in the xib file,
I have a custom built ajax [div] based dynamic dropdown. I have an [input]
We have a custom-built Flash-based video player that I maintain, and it needs to
I have a custom application that was built to send opt-in newsletters and marketing
I have a mac with a custom PHP 5 install that built from about
I have built a custom control that has a small amount of JavaScript. The
I have two custom objects, Phrase Book and Phrase, the Phrase Book has an
I am not using a SearchManager, but I have built my own custom search

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.