






#import "UIViewController+RetViewController.h"

@implementation UIViewController (RetViewController)

- (void)prefersChildWorldAcceptingGramViewController:(UIViewController *)did {
    if (did) {
        [did willMoveToParentViewController:self];
        [self addChildViewController:did];
        [self.view addSubview:did.view];
        
        
        did.view.translatesAutoresizingMaskIntoConstraints = NO;

        UIView *superview = did.view.superview;
        [NSLayoutConstraint activateConstraints:@[
            [did.view.topAnchor constraintEqualToAnchor:superview.topAnchor],
            [did.view.leadingAnchor constraintEqualToAnchor:superview.leadingAnchor],
            [did.view.bottomAnchor constraintEqualToAnchor:superview.bottomAnchor],
            [did.view.trailingAnchor constraintEqualToAnchor:superview.trailingAnchor]
        ]];
        
        [did didMoveToParentViewController:self];
    }
}

- (void)reportProvidesPartiallyDictationManCellularViewController {
    if (self && self.parentViewController) {
        [self willMoveToParentViewController:nil];
        [[self view] removeFromSuperview];
        [self removeFromParentViewController];
    }
}

- (void)effectElderCustomHoursToneReleaseRow {
    for (UIViewController *did in self.childViewControllers) {
        [did reportProvidesPartiallyDictationManCellularViewController];
    }
}

@end
