Iphone uiwebview加载页面时出现问题

Iphone uiwebview加载页面时出现问题,iphone,objective-c,ios4,Iphone,Objective C,Ios4,我的网页不会加载它显示什么我在firstviewcontroller中有3个ViewController你点击按钮加载下一页thirdviewcontroller到目前为止一切都很好,但网页没有加载 来自firstviewcontroller的代码 -(IBAction)moveToViewSiteView:(id)sender{ self.third = [[[SecondViewController alloc]initWithNibName:@"ThirdViewControll

我的网页不会加载它显示什么我在firstviewcontroller中有3个ViewController你点击按钮加载下一页thirdviewcontroller到目前为止一切都很好,但网页没有加载

来自firstviewcontroller的代码

-(IBAction)moveToViewSiteView:(id)sender{

    self.third = [[[SecondViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil]autorelease];
    [self.navigationController pushViewController:self.third animated:YES];
}
- (void)viewDidLoad {

    NSString *urlAddress=@"http://www.apple.com/";
    NSURL *url=[NSURL URLWithString:urlAddress];
    NSURLRequest *requestObj= [NSURLRequest requestWithURL:url];
    [self.cscsPage loadRequest:requestObj];
    [super viewDidLoad];
}
第三个虚拟控制器中的代码

-(IBAction)moveToViewSiteView:(id)sender{

    self.third = [[[SecondViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil]autorelease];
    [self.navigationController pushViewController:self.third animated:YES];
}
- (void)viewDidLoad {

    NSString *urlAddress=@"http://www.apple.com/";
    NSURL *url=[NSURL URLWithString:urlAddress];
    NSURLRequest *requestObj= [NSURLRequest requestWithURL:url];
    [self.cscsPage loadRequest:requestObj];
    [super viewDidLoad];
}
我在ib的文档窗口中调用的uiwebview如果我从文件所有者拖动到webview,那么当我运行它时,应用程序会崩溃

希望一切都清楚


谢谢

移动
[super viewDidLoad]到viewDidLoad方法的顶部。您应该首先调用它的超类实现。

您的类名&XIB名称不同吗?在这一行中,self.third=[[SecondViewController alloc]initWithNibName:@“ThirdViewController”bundle:nil]autorelease];在viewDidLoad方法中放置一个断点,并检查它是否会出现