下面的代碼生成和錯誤:WebKitErrorDomain錯誤101
WebKitErrorDomain error 101
代碼:
-(Void) searchBarSearchButtonClicked: (UISearchBar *) activeSearchBar {
NSString * query = [searchBar.text stringByReplacingOccurrencesOfString: @ "" withString: @ "+"];
NSURL * url = [NSURL URLWithString: [NSString stringWithFormat: @ "http://http://www.google.com/search?q =%, query]];
NSURLRequest * requestObj = [NSURLRequest requestWithURL: url];
[Home loadRequest: requestObj];
}
-(Void) loadView {
[Super loadView];
CGRect bounds = [[UIScreen mainScreen] applicationFrame];
searchBar = [[UISearchBar alloc] initWithFrame: CGRectMake (0.0, 0.0, bounds.size.width, 48.0)];
searchBar.delegate = self;
[Self.view addSubview: searchBar];
}
我不會說英語,並依靠翻譯。由於語言問題,這可能是鍵盤問題還是編碼問題?
筆者說,他不說英語,並依賴於一個「翻譯」,大概基於網絡。我建議你保持你的答案非常明確,並避免俚語和方言所以譯者將提供更清潔的翻譯。 – TechZen 2011-03-04 14:28:46