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

  • Home
  • SEARCH
  • 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 6809507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:05:41+00:00 2026-05-26T20:05:41+00:00

Hello i am using the EGOImageView for lazy image loading.I m using the same

  • 0

Hello i am using the EGOImageView for lazy image loading.I m using the same code on UITable view.
Firstly i am configuring the cell and then with the use of tableviewCellWithReuseIdentifier returning the cell.I am using the code:

This is my tableviewCellWithReuseIdentifier where i am defining the UIImageView with tag:

- (UITableViewCell *)tableviewCellWithReuseIdentifier:(NSString *)identifier 

{

if([identifier isEqualToString:@"UICell"])
{
    UITableViewCell *uiCell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:identifier] autorelease];

    uiCell.textLabel.textAlignment = UITextAlignmentCenter;
    uiCell.textLabel.font = [UIFont systemFontOfSize:16];
    return uiCell;
}

CGRect rect;

rect = CGRectMake(0.0, 0.0, 320.0, 70.0);


UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:rect reuseIdentifier:identifier] autorelease];
//  [cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton];
cell.selectionStyle =UITableViewCellSelectionStyleNone;

     UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 70.0)];
imageView.tag = BG_Image;
[cell.contentView addSubview:imageView];
[imageView release];
  return cell;

}

AND this the function where i am configuring the cell:

-(void)configureCell:(UITableViewCell *)cell forIndexPath:(NSIndexPath *)indexPath 

{

UIImageView *imageView = (UIImageView *)[cell viewWithTag:BG_Image];
imageView.image = [UIImage imageNamed:@"event_box_bg.png"];

}

this is my EGO image code after initialization i want to know how to use this code and where

EGOImageView *_eventImageView = [[EGOImageView alloc] initWithPlaceholderImage:[UIImage imageNamed:@"placeholder.png"]];

Please help..

Thanks,

  • 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-26T20:05:42+00:00Added an answer on May 26, 2026 at 8:05 pm

    Add an EGOImageView to cell.ContentView in your method tableviewCellWithReuseIdentifier with the code you already posted.

    Like this

    - (UITableViewCell *)tableviewCellWithReuseIdentifier:(NSString *)identifier 
    {
        if([identifier isEqualToString:@"UICell"])
        {
            ...
        }
        CGRect rect = CGRectMake(0.0, 0.0, 320.0, 70.0);
        UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:rect reuseIdentifier:identifier] autorelease];
        cell.selectionStyle =UITableViewCellSelectionStyleNone;
    
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 70.0)];
        // you can assign the static background image right here   
        imageView.image = [UIImage imageNamed:@"event_box_bg.png"];
        [cell.contentView addSubview:imageView];
        [imageView release];
    
        // Create an EGOImageView
        EGOImageView * egoImageView = [[EGOImageView alloc] initWithPlaceholderImage:[UIImage imageNamed:@"placeholder.png"]];
        egoImageView.tag = EGO_Image;
        [cell.contentView addSubview:egoImageView];
        [egoImageView release];
    
        return cell;
    }
    

    AND in configureCell

    -(void)configureCell:(UITableViewCell *)cell forIndexPath:(NSIndexPath *)indexPath 
    {
        EGOImageView *egoImageView = (EGOImageView *)[cell viewWithTag:EGO_Image];
        egoImageView.imageURL = [NSURL URLWithString:@"http://....jpg"];
    }
    

    assuming: you run your UITableViewDataSource like that:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@"YourTableViewCellID"]
        if (cell == nil)
        {
                cell = [self tableviewCellWithReuseIdentifier:@"YourTableViewCellID"];
        }
        [self dataSource configureCell:cell forIndexPath:indexPath];
    
        return cell;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello guys Im using advance notification manager this is the code Notification note =
hello i'm using this .htaccess code to redirect urls. RewriteEngine on RewriteRule ^printer/([^/\.]+)/?$ printer.php?id=$1
Hello I´m trying using the next piece of code: import pickle object = Object()
Hello I am using the following code to linkify email addresses and urls and
hello im using this code to do search <form action=arama.php method=get> <input type=text name=lol>
Hello I am using jQuery cycle lite plugin (image rotator plugin) , and I
Hello I am using a tab bar application. I want to reload a view
I have to read a file called hello.txt using the following code on java/eclipse/android:
Hello I am using this jquery code onclick=jQuery('.hidden').show() to show the class labeled .hidden
Hello i'm using SQL server full-text search. when i use the FreeText predicate it

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.