0

Can I format the "ltr's per pipe" text to a smaller size without effecting the actual result text? Is it possible to do in the code here instead of adding extra labels?

Thanks.

pumpSpeedAnswer.text = [NSString stringWithFormat:@"%@ ltr's per min.", numberAsString2];

1 Answers1

0

Yes, you can us the "attributedText" property of your UILabel to change the font size of an arbitrary portion of your string.

This related question has a nice example of how to do that.

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • Thanks Michael, but I can't seem to get it working, how exactly do i use it with the above code? I will try again tomorrow as have a flight to catch. – user2253720 Feb 02 '14 at 12:31