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