웹 페이지를 표시하려고합니다. http://johnbridge180.com/Boarders.html 저는이 기능을 제대로 사용할 수 없지만 하나의 오류 만 있습니다. ''webView 'undeclared ". 다음은 응용 프로그램에 대한 코드는 다음과 같습니다 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