Permalink
Browse files

Fixed infinite recursion

Since the navigationController method exchanged with navigationControllerSwizzled,
The correct way to call the original implementation is to call navigationControllerSwizzled.
  • Loading branch information...
1 parent 888a831 commit aa066c2d80d27901c4d9df02a63424813f8f2ba6 @jeanregisser jeanregisser committed with Feb 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 PSStackedView/UIViewController+PSStackedView.m
@@ -32,7 +32,7 @@ - (UINavigationController *)navigationControllerSwizzled {
if (!self.navigationControllerSwizzled) {
return (UINavigationController *)self.stackController;
}else {
- return self.navigationController;
+ return self.navigationControllerSwizzled;
}
}
#endif

0 comments on commit aa066c2

Please sign in to comment.