我的代码:
@interface UITextView ()
- (id)styleString; // make compiler happy
@end
@interface MBTextView : UITextView
@end
#import "MBTextView.h"
@implementation MBTextView
- (id)styleString {
return [[super styleString] stringByAppendingString:@"; line-height: 1.2em"];
}
@end我打电话给你:
[MBTextView setValue:@"<b>big</b><br>blah blah" forKey:@"contentToHTMLString"];它给了我NSUnknownKeyException。但如果我只使用:
[UItextView setValue:@"<b>big</b><br>blah blah" forKey:@"contentToHTMLString"]; all is ok.what wrong with my code?发布于 2013-05-22 18:37:22
抱歉,这是我的错:
[UItextView.text setValue:@"<b>big</b><br>blah blah" forKey:@"contentToHTMLString"]; 我不能使用文本,抱歉
https://stackoverflow.com/questions/16689050
复制相似问题