-2
當我編寫一個簡單的代碼來創建表格時,我得到了_CGRect referenced From
錯誤。我不知道如何解決這個錯誤。我甚至增加了CoreGraphics
框架到我的項目在Xcode中爲iPhone創建表格
static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: SimpleTableIdentifier];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier: SimpleTableIdentifier] autorelease];
}
NSUInteger row = [indexPath row];
cell.text = [listData objectAtIndex:row];
return cell;
謝謝你,但我沒有像 – 2012-03-21 08:41:28
那樣的任何方法,當然你可以。檢查你自己的代碼。 cell = uitableviecell initwithframe – 2012-03-21 08:43:05