Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS-我的iPad故事板上的细节视图没有填充_Ios_Objective C_Ipad_Uitableview_Uisplitviewcontroller - Fatal编程技术网

iOS-我的iPad故事板上的细节视图没有填充

iOS-我的iPad故事板上的细节视图没有填充,ios,objective-c,ipad,uitableview,uisplitviewcontroller,Ios,Objective C,Ipad,Uitableview,Uisplitviewcontroller,唉,关于这件事有上百万个问题,但没有一个对我有用。。因此: 我的应用程序适用于iPhone。我有一个表视图,当我继续时,数据移动良好 对于iPad,我没有在splitView中获取详细数据。但当我记录detailView对象时,我会看到以下内容: 2014-08-28 17:44:26.298 GuessGreek[59754:607] -[WordViewController tableView:didSelectRowAtIndexPath:] 2014-08-28 17:44:26.299

唉,关于这件事有上百万个问题,但没有一个对我有用。。因此:

我的应用程序适用于iPhone。我有一个表视图,当我继续时,数据移动良好

对于iPad,我没有在splitView中获取详细数据。但当我记录detailView对象时,我会看到以下内容:

2014-08-28 17:44:26.298 GuessGreek[59754:607] -[WordViewController tableView:didSelectRowAtIndexPath:]
2014-08-28 17:44:26.299 GuessGreek[59754:607] -[WordDetailsViewController viewDidLoad]
2014-08-28 17:44:26.300 GuessGreek[59754:607] detailItem 1<WordEntity: 0x786853e0> (entity: WordEntity; id: 0x78685810 <x-coredata://B2B61C41-1855-46EB-AA5E-04697CA6B025/WordEntity/p1454> ; data: {
    category = uncategorized;
    changeFlag = nil;
    englishScore = 0;
    englishText = "unmarried, single";
    example = nil;
    favorite = nil;
    greekScore = 0;
    greekText = "\U03ac\U03b3\U03b1\U03bc\U03bf\U03c2-\U03b7-\U03bf";
    type = Adjective;
    uid = 1454;
})

2014-08-28 17:44:26.302 GuessGreek[59754:607] 1 greekTextField: (null)
2014-08-28 17:44:26.303 GuessGreek[59754:607] 1 englishTextField: (null)
//iPhone

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([segue.identifier isEqualToString:@"wordToDetails"])

        NSIndexPath *indexPath = [self.searchDisplayController.searchResultsTableView indexPathForCell:(UITableViewCell *)sender];

        id object;
        if (indexPath != nil)
        {
            object = [self.searchResults objectAtIndex:indexPath.row];
            [self.searchDisplayController setActive:NO];
        }
        else
        {
            indexPath = [self.wordTable indexPathForCell:(UITableViewCell *)sender];
            object = [self.fetchedResultsController objectAtIndexPath:indexPath];

        }


        WordDetailsViewController *destinationController = segue.destinationViewController;

        destinationController.detailItem = object;

   }
}
DetailView-viewDidLoad

    NSLog(@"detailItem 1%@", detailItem);
self.greekTextField.text = [self.detailItem valueForKey:@"greekText"];
    self.englishTextField.text = [self.detailItem valueForKey:@"englishText"];

如果您使用Core data的@dynamic properties,我将非常感谢您在这方面提供的任何帮助/建议。

如果您使用Core data的@dynamic properties怎么办

self.greekTextField.text = self.detailItem.greekText;    
self.englishTextField.text = self.detailItem.englishText;

谢谢detailItem是一个托管对象。。这就是你的意思吗?我想我不明白你的意思。但你是对的,我记录的对象是错误的。。。谢谢
self.greekTextField.text = self.detailItem.greekText;    
self.englishTextField.text = self.detailItem.englishText;