tags:

views:

29

answers:

2

i have created my label using this

UILabel *label1 = (UILabel *) [cell viewWithTag:1];

i want to move my label to centre of the cell... can any one answer it.... thank you for valuable answers...

A: 
Andiih
+1  A: 

The cell's center point is in the cell.superview's coordinates, just convert that point to the cell's coordinates and set the label's center there:

label1.center = [cell.superview convertPoint:cell.center toView:cell];
progrmr