开发者

uiwebview problem loading page

开发者 https://www.devze.com 2023-03-16 17:50 出处:网络
My webpage will not load it shows nothing I have 3 viewcontrollers in firstviewcontrolleryou click the button which loads the next page thirdviewcontrollerup to this point all is good but the webpage

My webpage will not load it shows nothing I have 3 viewcontrollers in firstviewcontroller you click the button which loads the next page thirdviewcontroller up to this point all is good but the webpage doesnt load

code from firstviewcontroller

-(IBAction)moveToViewSiteView:(id)sender{

    self.third = [[[SecondViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil]autorelease];
    [self.navigationController pushViewController:self.third animated:YES];
}

code in thirdviewcontroller

- (void)viewDidLoad {

    NSString *urlAddress=@"http://www.apple.com/";
    NSURL *url=[NSURL URLWithString:urlAddress];
    NSURLRequest *requestObj= [NSURLRequest requestWithURL:url];
    [self.cscsPage loadRequest:requestObj];
    [super viewDidLoad];
}

the uiwebview i have called webview in the document window in ib if i drag from files owner to the webview then when i run开发者_JAVA技巧 it the app crashes.

hope all is clear

thanks


Move [super viewDidLoad]; to the top of viewDidLoad method. You should invoke the super class implementation of it first.

0

精彩评论

暂无评论...
验证码 换一张
取 消