Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 640 Bytes
//
// UIViewController+DCTStoryboarding.m
// Issues
//
// Created by Daniel Tull on 13.08.2011.
// Copyright 2011 Daniel Tull. All rights reserved.
//
#import "UIViewController+DCTStoryboarding.h"
@implementation UIViewController (DCTStoryboarding)
- (UIViewController *)dct_visibleMostChildViewController {
return self;
}
- (void)dct_recursivelyEnumerateViewControllersUsingBlock:(void (^)(id viewController))block {
block(self);
[self.childViewControllers enumerateObjectsUsingBlock:^(id viewController, NSUInteger idx, BOOL *stop) {
[viewController dct_recursivelyEnumerateViewControllersUsingBlock:block];
}];
}
@end
Jump to Line
Something went wrong with that request. Please try again.