---
title: "How to set text in table cell to Right and Left in iOS"  
description: "How to set text in table cell to Right and Left in iOS"  
author: "Anonymous User"  
published: 2015-11-17  
updated: 2015-11-17  
canonical: https://www.mindstick.com/forum/33603/how-to-set-text-in-table-cell-to-right-and-left-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to set text in table cell to Right and Left in iOS

I have created an app using [table view](https://www.mindstick.com/forum/33654/send-table-view-cell-value-on-button-action-in-ios), now I have a [problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic),\
I am not [understanding](https://www.mindstick.com/articles/12918/cat-5e-vs-cat-6a-understanding-the-major-differences) how to [display text](https://www.mindstick.com/forum/12715/how-to-display-text-in-an-mvc-view-with-htmlattrbutes) in both alignment [right and left](https://answers.mindstick.com/qa/36175/how-do-i-determine-the-right-and-left-tributaries-of-any-river) into [table cell](https://www.mindstick.com/forum/33993/how-to-wrap-long-text-in-a-table-cell-without-custom-cell).\
can any one tell me, how to do it?\

## Replies

### Reply by Tarun Kumar

I think you are not using appropriate [table](https://www.mindstick.com/articles/43918/how-to-design-table-using-bootstrap) cell style,\
your table cell style is set by default this: **UITableViewCellStyleDefault**\
replace it with this: **UITableViewCellStyleSubtitle** in your code:\
Example:

```
UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle                                                 resuseIdentifier:CellIdentifer] autorelease];
```


---

Original Source: https://www.mindstick.com/forum/33603/how-to-set-text-in-table-cell-to-right-and-left-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
