#import "RVBook.h"
-#import <UIKit/UINavigationBar.h>
-#import <UIKit/UINavigationItem.h>
-
-#import <UIKit/UITransitionView.h>
-
-#import <UIKit/UIView-Geometry.h>
-#import <UIKit/UIView-Hierarchy.h>
+#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <CoreGraphics/CGGeometry.h>
@implementation UCNavigationController
-- (void) setHook:(id)hook {
- hook_ = hook;
+- (void) setHook:(id<HookProtocol>)hook {
+ hook_ = hook;
}
- (void) dismissModalViewControllerAnimated:(BOOL)animated {
- [super dismissModalViewControllerAnimated:YES];
+ [super dismissModalViewControllerAnimated:YES];
- if (hook_ != nil)
- [hook_ didDismissModalViewController];
+ if (hook_ != nil)
+ [hook_ didDismissModalViewController];
}
@end