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

The Archive Base Latest Questions

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

ok, i want to kill my self, entire day with this problem. i set

  • 0

ok, i want to kill my self, entire day with this problem.
i set the tables size, but the problem is that i can not create a cell with the size i want. I will put code.

Acutally the cell size is the defoult one and i cant understand why.

on viewcontroller: i create 10 tables in a scroll

 - (void)viewDidLoad {
UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
scroll.pagingEnabled = NO;
NSInteger size=50;
for (int i = 0; i < 10; i++) {
    DynamicTableView *table = [[[DynamicTableView alloc] initWithFrame:CGRectMake(size, 50, 254, 600) style:UITableViewStylePlain] autorelease];
    [table setDelegate:table];
    [table setDataSource:table];
    [scroll addSubview:table];
    size+=300;
}
scroll.contentSize = CGSizeMake(5000, self.view.frame.size.height);
[self.view addSubview:scroll];
[super viewDidLoad];
[scroll release];

}

on DynamicTableView:

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

static NSString *CellIdentifier = @"Cell";

    FotoCell *cell = (FotoCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[FotoCell alloc] initWithFrame:CGRectMake(0, 0, 50, 90)]   autorelease];
    }
        cell.titLabel.text = @"Meeting on iPhone Development";
        cell.descLabel.text = @"Sat 10:30";
        cell.thumbnail.image = [UIImage imageNamed:@"estadio.jpg"];


return cell;
      }

on FotoCell:

     - (id)initWithFrame:(CGRect)frame{
[super initWithFrame:frame];

self.thumbnail = [[[UIImageView alloc] initWithFrame:CGRectMake(10,10,150,90)] autorelease];
self.thumbnail.opaque = YES;

[self.contentView addSubview:self.thumbnail];

self.titLabel = [[[UILabel alloc] initWithFrame:CGRectMake(0, self.thumbnail.frame.size.height * 0.632, self.thumbnail.frame.size.width, self.thumbnail.frame.size.height * 0.37)] autorelease];
self.titLabel.opaque = YES;
self.titLabel.backgroundColor = [UIColor colorWithRed:0 green:0.4745098 blue:0.29019808 alpha:0.9];
self.titLabel.textColor = [UIColor whiteColor];
self.titLabel.font = [UIFont boldSystemFontOfSize:11];
self.titLabel.numberOfLines = 2;
[self.thumbnail addSubview:self.titLabel];

self.backgroundColor = [UIColor colorWithRed:0 green:0.40784314 blue:0.21568627 alpha:1.0];
self.selectedBackgroundView = [[[UIView alloc] initWithFrame:self.thumbnail.frame] autorelease];
self.selectedBackgroundView.backgroundColor = kHorizontalTableSelectedBackgroundColor;

return self;
  }
  • 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:26:50+00:00Added an answer on May 26, 2026 at 8:26 pm

    You might need to implement heightForRowAtIndexPath

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

Sidebar

Related Questions

I got a long running program that I don't want to kill, but I
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
I wrote a program that forks some processes with fork(). I want to kill
I want to kill all processes that I get by: ps aux | grep
I want to kill a process programmatically in vista/windows 7 (I'm not sure if
I have this issue that I want to resolve. Lets think we have this
I want to kill a whole process tree. What is the best way to
I want to kill an executable of a game named KnightOnline and deny user
Want to do this: (EDIT: bad sample code, ignore and skip below) struct RECORD
want to have a Hyperlink-Button in a gridView in which I can display a

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.