[英]uiwebview problem loading page
我的网页不会加载它什么都没有显示我在 firstviewcontroller 中有 3 个视图控制器您单击加载下一页的按钮 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];
}
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 it the app crashes.
希望一切都清楚
谢谢
移动[super viewDidLoad];
到 viewDidLoad 方法的顶部。 您应该首先调用它的超级 class 实现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.