0
今天我有严重的大脑问题。我将数据从UITableView
传递到ViewController
。基本上我想要实现的是动态填充[email protected]"dynamicallypopulated"
与来自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"];
谢谢!
Jeremy