10
मैं newClock
स्ट्रिंग के 3 अंतिम वर्णों में विशेषताओं को असाइन करने का प्रयास करता हूं, जो @"3:33:23"
है।एनएसएमयूटेबलआरएलएआरए ऑब्जेक्टएट इंडेक्स: प्रभावी रेंज :: सीमाओं से बाहर
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)];