Cocoa Code Error

Discussion in 'iOS Programming' started by amit-battan, Feb 26, 2010.

  1. amit-battan macrumors newbie

    Joined:
    Sep 10, 2009
    #1
    Hi All

    this code Iphone SDK 3.0 version or later

    Code:
    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

    Code:
    cell.text = [[menuList objectAtIndex:indexPath.row] objectForKey:kTitleKey];
    
    but also not working. Can anybody help regarding this

    Thanks
    Amit Battan
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    What type is the variable cell declared as?

    Don't just tell us what you think it is, go look at it. If necessary, copy and paste its declaration into a post.
     

Share This Page