---
title: "How to change the height of table view in iOS?"  
description: "How to change the height of table view in iOS?"  
author: "Anonymous User"  
published: 2016-03-28  
updated: 2016-04-05  
canonical: https://www.mindstick.com/forum/34084/how-to-change-the-height-of-table-view-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c", "ipad"]  
reading_time: 1 minute  

---

# How to change the height of table view in iOS?

I am a [beginner](https://www.mindstick.com/forum/23159/need-beginner-project-ideas) in iOS [application development](https://www.mindstick.com/articles/65303/8-benefits-of-android-application-development-for-online-business). I [am getting](https://www.mindstick.com/forum/34179/i-am-getting-error-while-assigning-the-data-to-the-array-list) [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) when I set the [frame](https://www.mindstick.com/articles/749/html-frames) of [table view](https://www.mindstick.com/forum/33654/send-table-view-cell-value-on-button-action-in-ios), it is not working.\
I use this [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) to set the frame:

```
[self.tableView setFrame:CGRectMake(0, 0, 240, 360)];
```

but it does't change the table view frame.\
Please any one tell me how can I set the frame of table view..?

## Replies

### Reply by Tarun Kumar

If you have getting issue after setting the tableview frame then you can also use the method viewDidLayoutSubviews:.\
Use your [table](https://www.mindstick.com/articles/43918/how-to-design-table-using-bootstrap) [view](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view) frame set code in the viewDidLayoutSubviews: method.\
Below I have provided an example:

```
- (void) viewDidLayoutSubviews{    [self.tableView setFrame:CGRectMake(20, 10, 200, 300)];}
```

I hope it will resolve your table view frame set issue.


---

Original Source: https://www.mindstick.com/forum/34084/how-to-change-the-height-of-table-view-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
