UITextView with NSAttributedString y los atributos personalizados no funcionan
Cuando uso un UITextView, trato de agregar un atributo personalizado a una cadena atribuida. Sin embargo, todas las claves personalizadas se pierden después de la asignación a un UITTextTextTextText. Me gusta esto:
NSMutableAttributedString *lString = [[ NSMutableAttributedString alloc ] initWithString: @"astring"
attributes: @{ @"customkey": @"customvalue" }];
NSLog(@"string: %@", lString); // shows customkey present
textView.attributedText = lString;
NSLog(@"result: %@", self.textView.attributedText); // shows customkey missing
¿Se supone que esto funciona?