0

我的代码:

@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?
4

1 回答 1

0

对不起,这是我的错误:

[UItextView.text setValue:@"<b>big</b><br>blah blah" forKey:@"contentToHTMLString"]; 

我不能使用文字,对不起

于 2013-05-22T10:37:22.217 回答