내 핵심 데이터에서 모든 엔티티의 목록보기가 있습니다.비활성 뷰 컨트롤러의 텍스트 필드에 텍스트 추가
탭을 사용하면 선택한 엔티티 값이 탐색 스택에 푸시 될보기의 텍스트 필드로 밀려나 야하지만 그렇지 않습니다.
내가 혼란스럽고 짜증나게하는 이유는 NSLog
을 사용하면 기록되지만 동일한 코드를 사용하고 동일한 정보를 textFields
에 출력하지 않는다는 것입니다. 제목도 바뀌어야합니다. 텍스트 필드가 왜 쓰여지지 않는지에 대해서는 당황 스럽습니다. 내가 놓친 게 있니? 운동 선수 실체에 잘못 접근하고 있습니까? 여기
AllAthletes.h
가
table view
및
AthleteDetail.h
입니다
Athlete.h
가 동적으로 생성 핵심 데이터 속성을 참고하여 추진하기 상세보기입니다) 당신이하지 AthleteDetail
AthleteDetail *athleteDetail= [self.storyboard instantiateViewControllerWithIdentifier:@"showAthlete"];
에 대한 객체를 만들 때
allathletes.h
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
Athlete *athlete = (Athlete *)[athleteArray objectAtIndex:indexPath.row];
AthleteDetail *athleteDetail= [self.storyboard instantiateViewControllerWithIdentifier:@"showAthlete"];
athleteDetail.firstDetailTextField.text = athlete.first;
athleteDetail.title = athlete.full;
NSLog(@"Full Name: %@",athlete.full);
NSLog(@"Parent's Full Name: %@", athlete.pfull);
NSLog(@"Number: %@",athlete.phone);
NSString *firstNameText = athleteDetail.firstDetailTextField.text;
firstNameText = [NSString stringWithFormat:@"%@",athlete.first];
[self.navigationController pushViewController:athleteDetail animated:YES];
}
firstDetailTextField에 아울렛이 있습니까? – null
콘센트가 있고 제대로 연결되어 있습니다. –