/** * ***************************************** Navigation ***************************************** */ @Selector("prepareForSegue:sender:") @Generated public void prepareForSegueSender(UIStoryboardSegue segue, NSObject sender) { NSIndexPath indexPath = tableView().indexPathForSelectedRow(); PatientInfo patient = mPatients.get((int) indexPath.row()); MainMonitorVC controller = (MainMonitorVC) segue.destinationViewController(); controller.setPatient(patient); }
@Selector("tableView:cellForRowAtIndexPath:") @Override public UITableViewCell tableViewCellForRowAtIndexPath( UITableView tableView, NSIndexPath indexPath) { String reusableId = "patientCell"; UITableViewCell cell = (UITableViewCell) tableView.dequeueReusableCellWithIdentifierForIndexPath(reusableId, indexPath); PatientInfo patient = mPatients.get((int) indexPath.row()); cell.textLabel().setText(patient.description()); return cell; }