Kal
Kal copied to clipboard
How to increase the uitableview height?
How to increase the uitableview height?
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.
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