在我的索引方法行我使用的代碼 休耕線當我的應用程序的tableview細胞應用分析我得到了休耕泄漏在初始化期間存儲到單元格的值從未在cellForRowAtIndex方法中讀取?
代碼:
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
//if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
//}
// Configure the cell...
}
我得到的錯誤是這樣 價值的動初始化期間存儲於電池沒讀過
請幫助任何一個
在此先感謝
感謝您的回覆我試過這一個評論第一行它沒有給出錯誤。 –
你爲什麼試圖避免回收細胞? –
// if(cell == nil)are you told abt this line of code我有大量的行,如果我使用這個數據將被混合我的意思是覆蓋 –