AnsweredAssumed Answered

Rotating an AGSTextSymbol in XCode 6

Question asked by tstruck on Oct 7, 2014
Latest reply on Oct 8, 2014 by DGoyal-esristaff

Hi,

 

since I have updated my XCode-App to version 6 I'm experiencing strange behaviors of AGSTextSymbols when it comes to rotating them. I've updated to SDK version 10.2.4 but that didn't change anything.

As you can see in the screenshot I have created a red polyline with text objects attached to the line segments. The black line under each text is the "underline" that comes from the text object - it is correctly rotated. But the text itself rotates in a strange manner.

screenshot.png

Here's the simple code snippet for my text objects:

   AGSTextSymbol *textSym = [[AGSTextSymbol alloc] initWithText:[[NSString stringWithFormat:@"%1.2fm", length]stringByReplacingOccurrencesOfString:@"." withString:@","] color:[UIColor blackColor]];
   textSym.angle =  -degree_angle;
   textSym.fontSize = 20;
   textSym.italic = YES;
   textSym.underline =YES;

 

All I can say: It worked in XCode 5. Now it doesn't. Do you have any idea?

Outcomes