_titleTextField = [[UILabel alloc] initWithFrame:CGRectMake(69, 29, _titleTextField.frame.size.width, _titleTextField.frame.size.height)];
This is strange. You set the width and height of the label to its width and height. This will set it to the width and height of the previous label. I do not know what it will do the first time you come across this code.
The text is aligned to the right within the label view, but the borders do not end where you want. You can try setting the background color so that you can see where the frame of your label is.
_titleTextField.backgroundColor = [UIColor yellowColor];
You just need to set it to fill the cell space and allow it to place text inside it. Creating a label frame too large does not affect the size of the text, although it makes it too small, depending on the settings that are set.
_titleTextField = [[UILabel alloc] initWithFrame:CGRectMake(69, 29, 273 - 69, self.contentview.bounds.size.height)]
source share