You say your checkInPlayer
is of class CheckIn
, yet you're trying to access properties that are only declared in your Player
class. You'll either need to declare those same properties (playerFirstName
, etc.) in your CheckIn
class, or you need to change your checkInPlayer
to be an instance of the Player
class.
More clearly, it seems like it should look something more like this:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
Player *selectedPlayer = [self.fetchedResultsController objectAtIndexPath:indexPath];
checkInPlayer.firstName = selectedPlayer.playerFirstName;
checkInPlayer.lastName = selectedPlayer.playerLastName;
// No such property playerImage in the CheckIn class
//checkInPlayer.playerImage = selectedPlayer.playerImage;
}