Kal icon indicating copy to clipboard operation
Kal copied to clipboard

How to increase the uitableview height?

Open veerreef opened this issue 11 years ago • 2 comments

How to increase the uitableview height?

veerreef avatar Jun 27 '13 11:06 veerreef

If you look at the source it uses an autoresized height mask. It sizes it's height dynamically with all other components within the view.

avelis avatar Jul 24 '13 17:07 avelis

I have a code that changes height depending on iOS screen height. Adjust the values as you see fit. I did this KalViewController.m's -(void)loadView method:

int width = [[UIScreen mainScreen] applicationFrame].size.width;
int height;

if(([[UIScreen mainScreen] bounds].size.height == 568)){
    height = [[UIScreen mainScreen] applicationFrame].size.height-  210;
}else{
    height = [[UIScreen mainScreen] applicationFrame].size.height-  123;
}

KalView *kalView = [[KalView alloc] initWithFrame:CGRectMake(0, 0, width, height) delegate:self logic:logic];

Worked for me, hope it'll work for you too. Cheers

ignus001 avatar Nov 12 '13 03:11 ignus001