我有很奇怪的问题
我建立与一个UIWebView和NavigationController一个简单的应用程序,但问题是秒钟加载页面时,我回到第一页,并参观了一个链接应用程序崩溃和控制台什么都不说
这是我在完成加载代码
-(void)webViewDidFinishLoad:(UIWebView *)aWebView {
NSString *str = [aWebView stringByEvaluatingJavaScriptFromString:@"document.title"];
self.navigationItem.title = str;
[navigationActivity stopAnimating];
}
这对于Web视图应该开始加载
if(navigationType == UIWebViewNavigationTypeOther)
{
NSURL *url2 = [request URL];
NSString *URLStr = [url2 absoluteString];
RootViewController* viewController = [[RootViewController alloc] init];
NSString *holder = [self getQueryStringInner:URLStr];
[self getQueryString:URLStr];
if([holder length] != 0 && [flag length] != 0 && !facebook )
{
appDelegate.title =@"Title";
appDelegate.query = queryString;
appDelegate.url = holder;
[self.navigationController pushViewController:viewController animated:YES];
[viewController release];
return NO;
}
}
我真的很新的Objective-C和iOS开发,所以任何帮助将不胜感激
任何帮助