uiwebview problem loading page
我的网页无法加载,它什么也没有显示。我在firstviewcontroller中有3个viewcontrollers,您单击加载下一页的按钮第三视图控制器到目前为止,一切都很好,但是网页没有加载
来自firstviewcontroller
的代码
1 2 3 4 5 | -(IBAction)moveToViewSiteView:(id)sender{ self.third = [[[SecondViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil]autorelease]; [self.navigationController pushViewController:self.third animated:YES]; } |
thirdviewcontroller
中的代码
1 2 3 4 5 6 7 8 | - (void)viewDidLoad { NSString *urlAddress=@"http://www.apple.com/"; NSURL *url=[NSURL URLWithString:urlAddress]; NSURLRequest *requestObj= [NSURLRequest requestWithURL:url]; [self.cscsPage loadRequest:requestObj]; [super viewDidLoad]; } |
如果我从文件所有者拖到webview中,那么我在ib的文档窗口中调用了uiwebview,那么当我运行它时,应用程序崩溃。
希望一切都清楚了
谢谢
将