This:
CGRect frame = CGRectMake((estOrientedPoint.x) + 50.0, (estOrientedPoint.y) + 50.0, 200.0, 40.0);
… only changes the label itself, not its position, and the first two arguments are ignored by the location view anyway. What you actually need to change is the estOrientedPoint
, i.e.:
ESTOrientedPoint *estOrientedPoint = estPositionedBeacons.position;
ESTOrientedPoint *estOrientedPoint2 = [ESTOrientedPoint
pointWithX:estOrientedPoint.x + 50.0
y:estOrientedPoint.y + 50.0
orientation:estOrientedPoint.orientation];
CGRect frame = CGRectMake(0, 0, 200.0, 40.0);
// ...
[self.locationView drawObjectInBackground:lable
withPosition:estOrientedPoint2
identifier:appdelegate.roomNameArray[iloop]];