I cannot get the value of a table view cell in cocoa

Posted by Michael Amici on Stack Overflow See other posts from Stack Overflow or by Michael Amici
Published on 2010-06-13T11:57:52Z Indexed on 2010/06/13 12:02 UTC
Read the original article Hit count: 282

I am trying to get the value of a cell in a table view but it won't let me. If someone could help that would be great.

int numberOfChecks = -1;
numberOfChecks = numberOfChecks +1;

    if ([objectsForTable count]-1 >= numberOfChecks) {


        UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:numberOfChecks];

        NSString *cellTitle = cell.textLabel.text;

    }

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about xcode