0
htmPath = [[NSBundle mainBundle] pathForResource:@"barcode" ofType:@"html"];
params = [[NSString alloc] initWithFormat:@"?data=%@",numberTextField.text];
fileURL = [NSURL URLWithString:[[[NSURL fileURLWithPath:htmPath] absoluteString] stringByAppendingString:params]];
[self.barView loadRequest:[NSURLRequest requestWithURL:fileURL]];
//// htmpath,params是字符串。內存泄漏此代碼
/// fileurl是nsurl,在此我調用追加兩個字符串的結果。 ///numberTextField.text是將使用此html進一步功能的文本字段。
我發佈了老闆 – pradeep