0
오늘 심각한 뇌 문제가 있습니다. UITableView
에서 ViewController
으로 데이터를 전달하고 있습니다. 기본적으로 달성하고자하는 것은 동적으로 을 채우고 UITableView
에서 오는 것입니다 (그러면 txt 파일이 연결됩니다). 코드를 단계별로 살펴보면 값이 NULL
인데 그 위에 설정되어 있어도 출력 할 수 있습니다.pathForResource를 동적으로 채 웁니다.
코드 : 사전에
NSString *location = self.animalTitle;
NSLog(@"path : %@",animalTitle);
NSLog(@"path : %@",location);
//initWithFormat:@"Your favorite color is %@", favoriteColorTextField.text
NSString *path = [[NSBundle mainBundle] pathForResource:[location to be dynamic!!! what should I put here?] ofType:@"txt"];
감사합니다!
제레미