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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:55:26+00:00 2026-06-04T13:55:26+00:00

Hi guys I’m unable to make the image file the custom uitableview cell i

  • 0

Hi guys I’m unable to make the image file the custom uitableview cell i made. The image is so small and i don’t know how to enlarge it. Thnx in advance for the help.

#import <UIKit/UIKit.h>

@interface customCell : UITableViewCell
{
  //UILabel *frontLabel;    
}
@property(nonatomic , strong) IBOutlet UILabel *label;
@property(nonatomic , strong) IBOutlet UILabel *label2;
@property(nonatomic , strong) IBOutlet UIImageView *imgView;
@end

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  static NSString *CellIdentifier = @"cell";

  customCell * cell =[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil) {
    cell = [[customCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    // cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
  }


  User * user = [self.list objectAtIndex: indexPath.row];

  cell.label.text = user.username;
  NSString *url = user.profilePic;
  UIImage * image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:url]]];
  cell.imageView.contentMode =UIViewContentModeScaleAspectFit;
  cell.imageView.image =image;

  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-06-04T13:55:28+00:00Added an answer on June 4, 2026 at 1:55 pm

    In your customCell class (btw all classes should start with a capital letter, properties and variables should be lowercase), you just need to set the frame property of your imageView object to the correct size and position you want.

    Something like imageView.frame = CGRectMake(10., 10., 50., 50.) where the first two parameters are the x and y position of the top right corner of the image view, and the second two parameters are the width and height.

    Or, since you have those properties specified as IBOutlet’s, if you’re using a XIB file for the layout, you should have the size setup already in there.

    Without seeing a screenshot of Interface Builder for the XIB or the implementation code for customCell, that’s the best I can help.

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

Sidebar

Related Questions

Guys How can I make this work `find /xyz/abc/music/ |grep def` I don't want
Guys, I HAVE tried reading tons of stuff about EJB. And I don't get
guys I know this question is very basic but I've met in few publications
guys, I want to set actions to touches. If people make single touch -
guys. I have UITableView with different cells and I have code, which counts height.
guys i have a xml file which is like this: <Point TestFlag=0 id=1 name=Conversation
guys, I'm trying to realize viewing comments on internet portal and I'm using UITableView.
guys i got a php file that use it as xml for a flash
Guys I want create files for check somethings, and create my owner custom rules,
Guys I asked a similar question like this earlier since I was unable to

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.