i'm currently making an app where the suer selects an MKMapView
annotation and then the title of the annotation(pin) is set to a detailtextLabel
in a Right Detail UITableViewCell
.
My Problem is that when the text is large, the detailTextLabel
becomes multiple lines. When this happens the TextLabel
of the cell(the one the left) shifts up. Heres What I've tried:
In the cellForRowAtIndexPath Method, I tried adjusting the frame through the following code:
CGRect frame = cell.textLabel.frame;
frame.origin.y = cell.frame.size.height/2;
cell.textLabel.frame = frame;
Where cell is a
UITableViewCell
that is set to right detailSubclass the cell and tun try to adjust the frame in the
-(void)layoutSubviews
How do I stop it from going up and keep it at the center of the cell?