Hi
am launching a tableviewcontroller as below. in uitableviewcell i only have a UILabel. when i click on the cell, i want the checkmark accessory to show tick mark. in didSelectRowAtIndexPath, i print the 'text' of label and it shows the name "itemName" that i gave in storyboard. i feel like the cell is not getting configured or memory not alloc'ed properly. never had this issue before. am running xcode 11.7. anything wrong with cellForRowAtIndexPath()? Spent like 5 hours on this simple item picker. Appreciate any help.
i also posted this question on SO here: https://stackoverflow.com/questions/64507695/accessorytypecheckmark-isnt-showing-appears-like-something-going-on-with-uitab
am launching a tableviewcontroller as below. in uitableviewcell i only have a UILabel. when i click on the cell, i want the checkmark accessory to show tick mark. in didSelectRowAtIndexPath, i print the 'text' of label and it shows the name "itemName" that i gave in storyboard. i feel like the cell is not getting configured or memory not alloc'ed properly. never had this issue before. am running xcode 11.7. anything wrong with cellForRowAtIndexPath()? Spent like 5 hours on this simple item picker. Appreciate any help.
i also posted this question on SO here: https://stackoverflow.com/questions/64507695/accessorytypecheckmark-isnt-showing-appears-like-something-going-on-with-uitab
please ignore this. my bad. didSelectRowAtIndexPath i should not get cell with dequeueReusableCellWithIdentifier
//ewfFreeItemPickerTableViewCell *cell = [self.tableView
// dequeueReusableCellWithIdentifier:@"ewfFreeItemPickerCell" forIndexPath:indexPath];
// this works.
ewfFreeItemPickerTableViewCell *cell = (ewfFreeItemPickerTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
}
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
//ewfFreeItemPickerTableViewCell *cell = [self.tableView
// dequeueReusableCellWithIdentifier:@"ewfFreeItemPickerCell" forIndexPath:indexPath];
// this works.
ewfFreeItemPickerTableViewCell *cell = (ewfFreeItemPickerTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
}