我有这段代码(XCode 4,使用带有 ARC 的 Storyboards),它从数组(rArray)中获取数据并将其放置在它最初来自的文本字段中(我想编辑数据)。数组 (rArray) 中包含有效数据,但文本字段中没有任何内容。我究竟做错了什么?
SingletonListOfReadings *rShareInstance = [SingletonListOfReadings sharedInstance];
rArray *ra = [rShareInstance.listOfReadings objectAtIndex: indexPath.row]; // get an rArray object out of listOfReadings
// place data back into textfields
EnterDataViewController *edvc = [[EnterDataViewController alloc] init];
edvc.txtSTA1.text = ra.rSTA;
edvc.txtBS.text = ra.rBS;
edvc.txtFS.text = ra.rFS;
edvc.txtDesc.text = ra.rDesc;
[self.navigationController pushViewController:edvc animated:YES];