I want to put numbers in a label with alignment like in the image. None of the label's alignment modes could help me.
The decimal digits should be above the centre line and between the top margin. The other digits should be aligned in a regular fashion. I don't even know what the "professional" name is for a thing like this or any sort of API that can help.
Can somebody point me in the direction or have an example snippet?
Thanks
Use below code. I have done it by using
NSMutableAttributedString
.A sample screen shot of output: