objective c - NSStrikethroughStyleAttributeName , How to strike out the string in iOS 10.3? -
i have used line of code before release of ios 10.3 ,and worked fine.
nsmutableattributedstring *attributestring = [[nsmutableattributedstring alloc] initwithstring:[nsstring stringwithformat:@"%@\n%@",strmrp,stroffer]]; [attributestring addattribute:nsfontattributename value:[uifont boldsystemfontofsize:12] range:nsmakerange(0, strmrp.length)]; [attributestring addattribute:nsfontattributename value:[uifont boldsystemfontofsize:15] range:nsmakerange(strmrp.length, stroffer.length+1)]; [attributestring addattribute:nsstrikethroughstyleattributename value:[nsnumber numberwithinteger: nsunderlinestyledouble] range:nsmakerange(0,strmrp.length)];
but stopped working ,is there alternate way strike out ?
it bug in ios 10.3 , nsstrikethroughstyleattributename
(any nsunderlinestyle
cases) not working more on ios sdk 10.3.
if found updated answer related , please inform here, update answer.
product version: 10.3
created: 14-mar-2017
originated: 14-mar-2017
open radar link: http://www.openradar.appspot.com/31034683
radar status open state
you can see alternate sample here may useful.
Comments
Post a Comment