I have a label in my table cell which has some static content and it needs to be center aligned with respect to its main view. The constraints are horizontally and vertically in container. But when i run the app then the label is always left aligned no matter what constraints i am applying to it. Moreover if i align the label to the right with the trailing and top constraint, it still remains to the left. If i remove all the constraints of label then it works perfect for all the screen sizes. Not able to get to the actual issue. Can someone please help me with the actual issue. (Using Xcode 8.3.3)
Asked
Active
Viewed 256 times
-1
-
update your question with screenshots – Anurag Sharma Jul 31 '17 at 10:43
-
Please do add some UI explanation to understand your question to others. – Shrikant K Aug 01 '17 at 11:28
1 Answers
-1
give this a try .
Select your tableView cell and go the attributes inspector and do the settings as shown in the screenshot below.
Accept answer if it helps you and leave your comment. good luck.

Faisal
- 162
- 1
- 12