I have a UIViewController that is grabbing JSON data from a webservice and mapping it to an object (called a Post). In my viewDidLoad I am able to get this data from self.fetchedResultsController.fetchedObjects. My issue is I am trying to do the same thing in a child view controller and the fetchedResultsController performFetch does not produce an error however the fetchedObjects is empty.

I pass the managedObjectContext like so:

```
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    [super prepareForSegue:segue sender:sender];

    if ([segue.identifier isEqualToString:@"PostsList"] == YES) {
        PostViewController *postsController = [segue destinationViewController];
        postsController.managedObjectContext = self.managedObjectContext;
    }
}

```

In my storyboard I have done an embed segue with PostsList as the identifier. In my viewDidLoad I have the following:

```
- (void)viewDidLoad
{
    [super viewDidLoad];

    [[RKObjectManager sharedManager] getObjectsAtPath:@"/flog/post" parameters:nil    success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
        NSLog(@"Fetched count %d",[self.fetchedResultsController.fetchedObjects count]);
    } failure:^(RKObjectRequestOperation *operation, NSError *error) {
        NSLog(@"fail!");
    }]; 
}

```

My fetchedResultsController looks like:

```
- (NSFetchedResultsController *)fetchedResultsController
{
    if (_fetchedResultsController != nil) {
        return _fetchedResultsController;
    }
    NSLog(@"The managedObjectContext %@", self.managedObjectContext);
    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];

    NSEntityDescription *entity = [NSEntityDescription entityForName:@"Post" inManagedObjectContext:self.managedObjectContext];
    [fetchRequest setEntity:entity];
    [fetchRequest setFetchBatchSize:20];
    NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"created" ascending:NO];
    NSArray *sortDescriptors = @[sortDescriptor];

    [fetchRequest setSortDescriptors:sortDescriptors];
    NSLog(@"fetchRequest appears ok %@", fetchRequest );

    NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:self.managedObjectContext sectionNameKeyPath:nil cacheName:@"Post"];
    aFetchedResultsController.delegate = self;
    self.fetchedResultsController = aFetchedResultsController;

    NSLog(@"The fetchedResultsController %@", aFetchedResultsController );
NSError *error = nil;
if (![self.fetchedResultsController performFetch:&error]) {
    NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
    abort();
}

    NSLog(@"post fetched %@", self.fetchedResultsController.fetchedObjects );
    return _fetchedResultsController;
}

```

I have compared the behaviour to the parent controller and can not see any difference. Any help or debugging tips would be much appreciated. Thanks for reading.