Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into production
Browse files Browse the repository at this point in the history
Conflicts:
	DCTUIKit.xcodeproj/project.pbxproj
  • Loading branch information
danielctull committed May 18, 2011
2 parents 5dd1d50 + a6b5171 commit d0d371a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Core Data Based/UIViewController+DCTCoreDataViewController.m
Expand Up @@ -35,7 +35,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
*/

#import "UIViewController+DCTCoreDataViewController.h"

#import "UIResponder+DCTNextResponderExtensions.h"

@implementation UIViewController (DCTCoreDataViewController)

Expand All @@ -56,7 +56,8 @@ - (void)dct_presentModalCoreDataViewController:(UIViewController<DCTCoreDataView
viewController.managedObjectContext = coreDataSelf.managedObjectContext;
}

[self presentModalViewController:viewController animated:animated];
UIViewController *vc = [self dct_furthestResponderOfClass:[UIViewController class]];
[vc presentModalViewController:viewController animated:animated];
}

- (void)dct_presentModalNavigationControllerWithRootCoreDataViewController:(UIViewController<DCTCoreDataViewControllerProtocol> *)viewController animated:(BOOL)animated {
Expand All @@ -68,7 +69,11 @@ - (void)dct_presentModalNavigationControllerWithRootCoreDataViewController:(UIVi

UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:viewController];

[self presentModalViewController:nav animated:animated];
UINavigationController *viewControllersNav = viewController.navigationController;
if ((viewControllersNav)) nav.navigationBar.tintColor = viewControllersNav.navigationBar.tintColor;

UIViewController *vc = [self dct_furthestResponderOfClass:[UIViewController class]];
[vc presentModalViewController:nav animated:animated];
[nav release];
}

Expand Down

0 comments on commit d0d371a

Please sign in to comment.