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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:33:39+00:00 2026-05-14T06:33:39+00:00

This is my program – (void)viewDidLoad { [super viewDidLoad]; // Uncomment the following line

  • 0

This is my program

  - (void)viewDidLoad {
    [super viewDidLoad];

// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    self.title = @"Library";
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleBordered target:self action:@selector(close:)];
   // self.tableView.rowHeight = 80;
    }

-(void)close:(id)sender
{
//
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) 
{   cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];

    UILabel *dateLabel = [[UILabel alloc]init];
    dateLabel.frame = CGRectMake(85.0f, 6.0f, 200.0f, 20.0f);
    dateLabel.tag = tag1;
    [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
    cell.contentView.frame = CGRectMake(0.0f, 0.0f, 320.0f, 80.0f);
    [cell.contentView addSubview:dateLabel];
    [dateLabel release];
}

// Set up the cell...
//[(UILabel *)[cell viewWithTag:tag1] setText:@"Date"];
cell.textLabel.text = @"Date";

return cell;
}  

I am setting the frame size of cell in tableView: but the cell is in default size only. I mean the height I set was 80 but it was not set as 80 height.
How can I make it.

  • 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-14T06:33:39+00:00Added an answer on May 14, 2026 at 6:33 am

    Use self.tableView.rowHeight = 80.0;, or if that’s not working (depends on your table view setup), use the -[UITableViewDelegate tableView:heightForRowAtIndexPath:] method if you want different row heights for different cells.

    e.g. put this in whatever object is your UITableViewDelegate (probably the same file as above).

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        if (someConditionBasedOnIndexPath) return 60.0;
        return 80.0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This program gives 6 as output, but when I uncomment the line 9, output
this program is for class to display the database in Listview.i want to add
This program is written in C++. I am trying to use a void function
This program supposed to find command line arguments entered on Unix which ends with
this is ma program.in this program on delete button there didnt perform onclick listener
This program compiles fine but seg faults when running the value->getSmall in Period::display() .
this program crashes if i uncomment the release statements. i get that i am
This program is supposed to create a button that the user can press to
this program hangs after taking first argument:- #include <stdio.h> #include <conio.h> void ellip(char*,...); int
This program does not compile: public class xx { static class Class1<C> { void

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.