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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:46:53+00:00 2026-05-27T01:46:53+00:00

I am creating a custom uiview that contains an uilabel and an uiimage assigned

  • 0

I am creating a custom uiview that contains an uilabel and an uiimage assigned to an uiimageview. I assign the custom uiview to the uitableview headerview but i only see the uilabel not the uiimage…please help this is my code…

UIView *containerView1 =[[UIView alloc]initWithFrame:CGRectMake(0, 0, 300, 30)];

UILabel *headerLabel1 =[[UILabel alloc]initWithFrame:CGRectMake(75, 4, 300, 20)];
    headerLabel1.userInteractionEnabled = YES;
    headerLabel1.text = [NSString stringWithFormat:@"- Latest update %@ -", now];
    headerLabel1.textColor = [UIColor brownColor];
    headerLabel1.shadowOffset = CGSizeMake(0, 1);
    headerLabel1.font = [UIFont boldSystemFontOfSize:13];
    headerLabel1.backgroundColor = [UIColor clearColor];

    UIImage *image = [UIImage imageNamed:@"line_seperator.png"];
    UIImageView *imageView = [ [ UIImageView alloc ] initWithFrame:CGRectMake(0.0, 0.0, 30, 30)];

    imageView.image = image;
    imageView.contentMode = UIViewContentModeScaleAspectFit;

    [containerView1 addSubview:headerLabel1];
   [containerView1 addSubview:imageView];
    [containerView1 addSubview:indicator2];

   walltable.tableHeaderView = containerView1;

Any help appreciated.

Forgot to say that this code executes after the uitableview loads.

  • 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-27T01:46:54+00:00Added an answer on May 27, 2026 at 1:46 am

    I have found it. The image was not right. The image was downloaded from the web as .gif . I opened it in photoshop and saved it as .png but it did not saved correctly. I created a new image in photoshop and copy the one i had in that new image. I saved it as .png and it worked.

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

Sidebar

Related Questions

How would I go about creating a custom UIView that is like the event
Jython is great for creating custom data structures on need basis, but how to
In WPF, we are creating custom controls that inherit from button with completely drawn-from-scratch
I'm looking for a tutorial that explains creating custom usercontrols in WPF. I want
I have a library that programmatically constructs a UIView that exhibits my custom behavior.
I create a custom view in cocoa touch that is superclassed by UIView and
I am creating a custom StyleLabel by extending the UIView, which provides a link
I have a custom UIView that draws an image in the draw rect method.
I'm programatically creating a custom section header for a table that has a width
I am creating custom Swing components and want to provide a UI that looks

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.