Permalink
Browse files

Fixed warnings: NSObject was implicitly cast to UIViewController

  • Loading branch information...
hborders
hborders committed Jul 13, 2012
1 parent 580747f commit 78e6663f5d21b66cac1af8baee1daf38ac8e2647
Showing with 2 additions and 2 deletions.
  1. +2 −2 Classes/MGSplitViewController.m
@@ -935,7 +935,7 @@ - (void)setViewControllers:(NSArray *)controllers
- (UIViewController *)masterViewController
{
if (_viewControllers && [_viewControllers count] > 0) {
- NSObject *controller = [_viewControllers objectAtIndex:0];
+ UIViewController *controller = [_viewControllers objectAtIndex:0];
if ([controller isKindOfClass:[UIViewController class]]) {
return [[controller retain] autorelease];
}
@@ -977,7 +977,7 @@ - (void)setMasterViewController:(UIViewController *)master
- (UIViewController *)detailViewController
{
if (_viewControllers && [_viewControllers count] > 1) {
- NSObject *controller = [_viewControllers objectAtIndex:1];
+ UIViewController *controller = [_viewControllers objectAtIndex:1];
if ([controller isKindOfClass:[UIViewController class]]) {
return [[controller retain] autorelease];
}

0 comments on commit 78e6663

Please sign in to comment.