So I created a function:
-(void)checkCount:(UITableView *)tableView isIndexPathChecked:(NSIndexPath *)indexPath{
NSString *name = [[NSString alloc] init];
UITableViewCell *investigatedCell = [tableView cellForRowAtIndexPath:indexPath];
if(investigatedCell.accessoryType ==UITableViewCellAccessoryCheckmark)
name = investigatedCell.textLabel.text;
[checkedRows addObject: name];
}
I’m getting errors every time I try to call this method from within another method. What would be the proper syntax for this? Thank you.
I believe the error you are seeing is because the method call is not present in your public header file. Try adding
to your .h file.
You might also want to double-check your spelling and be absolutely sure you’re sending the method call to the correct object. I’m guessing self.