我得到一個錯誤,我做了一個UIPageController的網絡,但我似乎無法找到它的問題,只有一個錯誤,請幫助。代碼如下 - 需要更多代碼。調試xcode階段?
@interface ContentViewController()
@end
@implementation ContentViewController
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[_webView loadHTMLString: _dataObject baseURL:[NSURL URLWithString:@"http://"]];
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
@end
[_webView loadHTMLString: _dataObject baseURL:[NSURL URLWithString:@"http://"]];
我的 「錯誤是上述」
請幫
#import <UIKit/UIKit.h>
@interface ContentViewController : UIViewController
@property (strong, nonatomic) IBOutlet UIView *webView;
@property (strong, nonatomic) id dataObject;
@end
錯誤是什麼?你想從字符串或URL加載HTML嗎? – Rashad
你能顯示錯誤信息嗎? – VietHung
錯誤是「沒有可見@interface爲'UIView'聲明扇區'loadHTML_string:baseURL:' –