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

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:12 UTC
Read the original article Hit count: 218

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-touch

Related posts about uitableview