我正在尝试显示网页 http://johnbridge180.com/Boarders.html 我无法完全解决这个问题我只有一个错误:''webView'未声明。下面是应用程序的代码: WebViewController.h:错误:'webView'未声明
//
// WebViewController.h
// Boarders
//
// Created by John Bridge on 5/2/11.
// Copyright 2011 Bridge and co. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WebViewController : UIViewController {
IBOutlet UIWebView *displayWeb;
}
@end
WebViewcontroller.m:
//
// WebViewController.m
// Boarders
//
// Created by John Bridge on 5/2/11.
// Copyright 2011 Bridge and co. All rights reserved.
//
#import "WebViewController.h"
@implementation WebViewController
- (void)viewDidLoad {
displayWeb.userInteractionEnabled = true;
[displayWeb loadRequest:[[NSURLRequest alloc] initWithURL:[[NSURL alloc] initWithString:@"http://www.johnbridge180.com/Boarders.html"]]];
[super viewDidLoad];
}
@end
希望你们能帮忙,谢谢!
显示错误的是哪一行?什么是确切的错误信息? – Anna 2011-05-03 01:54:30