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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:01:41+00:00 2026-06-07T19:01:41+00:00

I placed a UIImageView in for the accessoryView in a UITableViewCell ala: UIImage* dragHandleImage

  • 0

I placed a UIImageView in for the accessoryView in a UITableViewCell ala:

UIImage* dragHandleImage = [UIImage imageNamed:@"rtf_icon"];
UIImageView* dragHandleView = [[[UIImageView alloc] initWithImage:dragHandleImage] autorelease];

dragHandleView.tag = DRAG_HANDLE_TAG;
cell.accessoryView = dragHandleView;

However, when the cell is displayed in the table, the accessoryView image is only visible on the first row in each section. After poking around, I found that somewhere between the tableview’s willDisplayCell: delegate call and the display of the cell, the accessoryView’s alpha property is set to zero. Is there anyway to prevent this so the image is visible?

Edit:
It appears to be done during the layoutSubviews call for the UITableViewCell.

Edit:
The full cellForRowAtIndexPath: function is long and full of cases that won’t be hit in this particular instance. The code that populates the cell is below:

cell.textLabel.hidden = NO;
cell.textField.hidden = YES;
cell.textLabel.tag = indexPath.section * indexPath.row;
NSString *filename = document.document.filename;
if([filename isEqualToString:@""])
{
    filename = [document.document previewItemTitle];
}
cell.textLabel.text = filename;
cell.showsReorderControl = NO;  

The following code populates the cell when the image is visible:

cell.textField.tag = indexPath.section;
cell.textField.hidden = NO;
cell.textField.text = [section numberedTitle];
cell.textField.enabled = canAddSections;
cell.textField.clearButtonMode = UITextFieldViewModeWhileEditing;
cell.textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
cell.textLabel.hidden = YES;
cell.showsReorderControl = NO;
  • 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-07T19:01:43+00:00Added an answer on June 7, 2026 at 7:01 pm

    Since those cells are editable, the editingAccessoryView gets shown. Putting the accessoryView into the editingAccessoryView proved to solve the issue. Inelegant, but functional.

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

Sidebar

Related Questions

UIImageView *tblBG = [[[UIImageView alloc] initWithFrame:self.view.bounds] autorelease]; tblBG setImage:[UIImage imageNamed:@evt_det_bg.png]]; self.tableView.backgroundView=tblBG; I want this
UIImageView *navBarImageView = [[UIImageView alloc] initWithImage:navBarImage]; [navBarImageView setFrame:CGRectMake(0, 0, 320, 44)]; self.navigationItem.titleView = navBarImageView;
I placed 4 UIImageView on UIView and I named them UIImageView myImg1 = [[UIImageView
I placed an UIImageView,on the imageView UIView is placed.If I touch on that view
i want to display an UIImage within a UIImageView but it doesn't work and
UIView is placed on the UIImageview. When i touch on the UIView at that
I'm using a UIImageView as a background-image and placed multiple UIButtons on it. Now
I have a single image that needs to be placed on multiple UIImageView. I
I have a UITableView , upon which I have placed an UIImageView , which
I have a UIImageView placed over a view and I want to capture iPhone

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.