summaryrefslogtreecommitdiff
path: root/UICaboodle/RVBook.mm
diff options
context:
space:
mode:
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r--UICaboodle/RVBook.mm18
1 files changed, 10 insertions, 8 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
index d83d760..9315cae 100644
--- a/UICaboodle/RVBook.mm
+++ b/UICaboodle/RVBook.mm
@@ -8,6 +8,14 @@
#import <UIKit/UIView-Geometry.h>
#import <UIKit/UIView-Hierarchy.h>
+#import <Foundation/Foundation.h>
+#import <CoreGraphics/CGGeometry.h>
+
+#include <cstdio>
+#include <cstdlib>
+
+#include <errno.h>
+
#import "RVPage.h"
@implementation RVBook
@@ -102,10 +110,7 @@
[pages_ addObject:page];
[self reloadButtonsForPage:page];
- if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:goingBack:)])
- [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:NO];
- else
- [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
}
- (void) popPages:(unsigned)pages {
@@ -149,10 +154,7 @@
[page setPageActive:YES];
[self reloadButtonsForPage:page];
- if ([navbar_ respondsToSelector:@selector(setAccessoryView:animate:goingBack:)])
- [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:YES];
- else
- [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
+ [navbar_ setAccessoryView:[page accessoryView] animate:animated removeOnPop:NO];
}
- (void) setTitle:(NSString *)title forPage:(RVPage *)page {