0
我的网页将不会加载它显示了什么,我有3个viewcontrollers在firstviewcontroller你点击它加载下一页thirdviewcontroller到这一点的按钮,一切都很好,但网页犯规负载UIWebView的问题加载页面
从firstviewcontroller代码
-(IBAction)moveToViewSiteView:(id)sender{
self.third = [[[SecondViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil]autorelease];
[self.navigationController pushViewController:self.third animated:YES];
}
代码thirdviewcontroller
- (void)viewDidLoad {
NSString *[email protected]"http://www.apple.com/";
NSURL *url=[NSURL URLWithString:urlAddress];
NSURLRequest *requestObj= [NSURLRequest requestWithURL:url];
[self.cscsPage loadRequest:requestObj];
[super viewDidLoad];
}
的一个UIWebView我呼吁在IB的文档窗口的WebView如果我从文件所有者拖到webview然后当我运行它的应用程序崩溃。
希望一切都清楚
感谢
您的课程名称和XIB名称有所不同?在这一行self.third = [[[SecondViewController alloc] initWithNibName:@“ThirdViewController”bundle:nil] autorelease]; –
在viewDidLoad方法中放置一个断点并检查它是否会出现 –