所以,我在下面发布我的代码。UITableViewController警告 - 帮助!
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath // I get a warning here Incomplete method implementation //
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
// Configure the cell...
NSLog (@"Dobby4");
NSInteger row = [indexPath row];
cell.text = [dogArray objectAtIndex:row];
//I get a warning for the line above-- 'text' is deprecated //
return cell;
}
所以,
1.我收到了警告 - 不完整的方法实现了该功能。
2.我得到另一个警告“文本”已弃用'
3.我试图调试,并试图打印一行“Dobby4” - 它没有打印。
我将不胜感激。
感谢您编辑Deepak。现在看起来好多了! – Legolas 2011-05-26 17:57:04