データベースからUIWebViewにテキストを追加したいのですが、処理できないエラーがあります。
私の.hで:
#import <UIKit/UIKit.h>
@interface readNotice : UIViewController {
IBOutlet UILabel *message;
IBOutlet UIWebView *body;
}
@property(nonatomic, retain)IBOutlet UILabel *message;
@property(nonatomic, retain)IBOutlet UIWebView *body;
-(void)getNoticeData:(NSString *)noticeID:(NSString *)noticeTitle;
@end
.mで:
@synthesize message,body;
-(void)getNoticeData:(NSString *)noticeID:(NSString *)noticeTitle {
//some taks not useful for this code
NSString *bodyText = [dict objectForKey:@"introtext"];
[body loadHTMLString: bodyText];
}
私が得るエラー:
No visible @interface for 'UIWebView' declares the selector 'loadHTMLString:'
なぜこうなった?前もって感謝します