10
Provo ad assegnare gli attributi a 3 ultimi caratteri della stringa newClock
, ovvero @"3:33:23"
.NSMutableRLEArray objectAtIndex: effectiveRange :: Out of bounds
Tuttavia ho un errore quando costrutto NSRange
:
NSMutableAttributedString *mas = [[NSMutableAttributedString alloc]initWithString:newClock];
[mas addAttributes:@{NSForegroundColorAttributeName:[UIColor grayColor],
NSFontAttributeName:[UIFont fontWithName:@"HelveticaNeue-Light" size:12]}
range:NSMakeRange(newClock.length-3,newClock.length)];