views:

19

answers:

1

Hi All

this code Iphone SDK 3.0 version or later

cell.textLabel.text = [[menuList objectAtIndex:indexPath.row] objectForKey:kTitleKey];

but it gives error
request for member 'textLabel' in something not a structure or union

I also try

cell.text = [[menuList objectAtIndex:indexPath.row] objectForKey:kTitleKey];

but also not working. Can anybody help regarding this

Thanks Deepika

A: 

Take a look at the class definition for the cell object, what type of object is it by the way? Does it have a property named "text" or "textLabel" or something similar? Since you are getting build errors I would guess not so maybe there is a different property altogether you should be looking for. Anyways I'm rambling a bit but the class definition for whatever type of object cell is should have your answer.

Rob Segal