0

I wish to make a label in which the text is struck-out. The label is dynamic and can take a text of any width.

I have imported 'UnderLineLabel' class given in the below link.

https://github.com/GuntisTreulands/UnderLineLabel/blob/master/README.md

[strikeLbl setShouldStrikeOut:YES];

The above line is working fine except when the label's content-width exceeds the label's frame-width.

Eventhough the below code is set, it helps in fitting the label within the given width. But, strike-out is not working in this case.

strikeLbl.minimumFontSize = 7;
strikeLbl.adjustsFontSizeToFitWidth = YES;
Ambili B Menon
  • 1,239
  • 2
  • 14
  • 26

0 Answers0