0
속성이있는 NSMutableString을 유지하는 데 문제가 있습니다. 각 UITableViewCell 누가 특성이 텍스트가있는 UITableView가 있습니다. 속성이 지정된 텍스트를 설정하는 것은 문제가되지 않지만 선택시 UITableViewCell의 특성은 손실됩니다.NSMutableAttributedString UILabel은 선택시 속성을 유지하지 않습니다.
NSMutableAttributedString *changesStyleString_h = [[NSMutableAttributedString alloc] initWithString:@"Attributes change!" attributes:@{NSFontAttributeName: [UIFont boldSystemFontOfSize:20], NSForegroundColorAttributeName:[UIColor yellowColor]}];
[changesStyleString_h addAttributes:@{ NSUnderlineStyleAttributeName:@(1)} range:NSMakeRange(11, 6)];
cell.mainLabel.attributedText = changesStyleString
내가 mainLabel도 UILabel의, 거기의 정의는 것을 지적 할 수 :이 특성을 설정 cellForRowAtIndexPath 내 코드입니다. 올바른 방향으로 도움을 주시면 대단히 감사하겠습니다!