我今天有严重的大脑问题。我正在将数据ViewController
从 a传递到 a 中UITableView
。基本上我想要实现的是动态地填充pathForResource@"dynamicallypopulated"
来自的内容UITableView
(然后它将继续获取关联的 txt 文件)。当我单步执行代码时,NULL
即使它设置在它上面,我也可以输出它。
编码:
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"];
提前致谢!
杰里米