1
X 축 레이블의 텍스트를 오른쪽 (수평)으로 어떻게 이동합니까? 기본적으로 x-tick에 걸쳐 두 x-tick (예 : | Jan | Feb | ...) 사이에 문자열을 표시 할 수 있기를 원합니다.코어 - 플롯 X 라벨을 틱간에 이동하려면 어떻게해야합니까?
newLabel = [[CPTAxisLabel alloc] initWithText:item.month textStyle:x.labelTextStyle];
newLabel.tickLocation = [[NSDecimalNumber numberWithInt:index] decimalValue];
CGPoint myPoint = newLabel.contentLayer.position;
CGFloat x = myPoint.x;
CGPoint yourPoint = myPoint;
yourPoint.x += 16.0;
[newLabel positionBetweenViewPoint:myPoint andViewPoint:yourPoint forCoordinate:CPTCoordinateX inDirection:CPTSignPositive];
...하지만 나는 SIGABRT 오류 (충돌)을 가지고 :
나는 다음을 시도했다.예를 들면 천 단어가 가치가 있습니다.
감사합니다, 릭