我正在嘗試顯示網頁 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