summaryrefslogtreecommitdiff
path: root/UICaboodle
diff options
context:
space:
mode:
Diffstat (limited to 'UICaboodle')
-rw-r--r--UICaboodle/BrowserView.h2
-rw-r--r--UICaboodle/RVBook.mm18
-rw-r--r--UICaboodle/ResetView.h3
-rw-r--r--UICaboodle/ResetView.mm5
4 files changed, 19 insertions, 9 deletions
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h
index c9a1f7d..7c6cc50 100644
--- a/UICaboodle/BrowserView.h
+++ b/UICaboodle/BrowserView.h
@@ -9,6 +9,8 @@
@class UIScroller;
@class UIWebView;
+@class WebView;
+
@class Database;
@interface BrowserView : RVPage {
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 {
diff --git a/UICaboodle/ResetView.h b/UICaboodle/ResetView.h
index 903bec0..c4eb3f7 100644
--- a/UICaboodle/ResetView.h
+++ b/UICaboodle/ResetView.h
@@ -1,7 +1,8 @@
#import <RVPage.h>
#import <RVBook.h>
-#import <UIKit/UIKit.h>
+#import <UIKit/UISectionList.h>
+#import <UIKit/UITable.h>
@interface UIView (RVBook)
- (void) resetViewAnimated:(BOOL)animated;
diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm
index 8c0041a..e0db831 100644
--- a/UICaboodle/ResetView.mm
+++ b/UICaboodle/ResetView.mm
@@ -3,6 +3,11 @@
#include <objc/objc.h>
#include <objc/runtime.h>
+#include <errno.h>
+
+#include <cstdio>
+#include <cstdlib>
+
@implementation UIView (RVBook)
- (void) resetViewAnimated:(BOOL)animated {