0
這是我的代碼,一起崩潰我的應用程序UIWebView的應用程式當
來分配的WebView它的價值位:它正常工作,直到最後一行。當它SIGBARTS。
[cell setLabelText:[cellTitle objectAtIndex:indexPath.row]];
[cell imagesetter:[imageTitle objectAtIndex:indexPath.row]];
[cell desSetter:[desTitle objectAtIndex:indexPath.row]];
[cell changeProductWeb:[webTitle objectAtIndex:indexPath.row]];
的陣列
webTitle = [[NSArray alloc] initWithObjects:
@"http://www.google.com/",
@"http://www.google.com/",
@"http://www.google.com/",
@"http://www.google.com/",
nil];
動作
- (IBAction) changeProductWeb:(NSString *)str{
NSURL *url = [NSURL URLWithString:str];
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
}
這是唯一的位崩潰該程序。當我刪除它不會崩潰。
webview如何創建? – Nekto