I have a table in one of my views, I want to use the table to allow the user to input data. To do this I created a custom UITableViewCell which worked perfectly.
My problem occurred when trying to get the text out of each cell. I have had a look through all the documentation and can't find any solution. Any help would be much appreciated!
The code for this method is:
Subject *subject = [self.arrayOfSubjects objectAtIndex:i];
AddSubjectDetailsCell *cell;
NSIndexPath *indexPath = [[NSIndexPath alloc] initWithIndex:i];
cell = [tableView cellForRowAtIndexPath:indexPath];
subject.title = cell.subjectTitleField.text;
subject.room = cell.subjectRoomField.text;
subject.teacher = cell.subjectTeacherField.text;
Does anyone have a way of converting a regular cell to a custom one or another way to extract the text from the text field?
Thanks!