I am trying to "beautifully" display the shares in the application for the iPhone. I used to use the tedious switch statement leading to hard-coded Unicode characters for vulgar fractions, but I found out about the unicode slash character, which, if I understand it correctly, should mean that I can create a line like this: / p>
[NSString stringWithFormat:@"%i\u2044%i",numerator,denominator];
And the "renderer" will automatically print it with a smaller superscript numerator and indexed denominator. However, the code above just gives me a standard 1/2 view. I use drawAtPoint to put a string on the screen. I experimented with decposedStringUsingCanonicalMapping and precomposedStringUsingCanonicalMapping, but to be honest, the documentation has lost me.
Should this work, or is the NSString drawing not handling it?
source share