blob: 5d29a2668f6586ba4827f6521bd68de601d0051c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#import "RVPage.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "RVBook.h"
@implementation RVPage
- (NSString *) title {
[self doesNotRecognizeSelector:_cmd];
return nil;
}
- (NSString *) backButtonTitle {
return nil;
}
- (NSString *) leftButtonTitle {
return nil;
}
- (NSString *) rightButtonTitle {
return nil;
}
- (UINavigationButtonStyle) leftButtonStyle {
return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal;
}
- (UINavigationButtonStyle) rightButtonStyle {
return UINavigationButtonStyleNormal;
}
- (void) _rightButtonClicked {
[self doesNotRecognizeSelector:_cmd];
}
- (void) _leftButtonClicked {
[self doesNotRecognizeSelector:_cmd];
}
- (UIView *) accessoryView {
return nil;
}
- (void) setPageActive:(BOOL)active {
}
- (void) resetViewAnimated:(BOOL)animated {
[self doesNotRecognizeSelector:_cmd];
}
- (void) setTitle:(NSString *)title {
[book_ setTitle:title forPage:self];
}
- (void) setBackButtonTitle:(NSString *)title {
[book_ setBackButtonTitle:title forPage:self];
}
- (void) reloadButtons {
[book_ reloadButtonsForPage:self];
}
- (void) reloadData {
}
- (id) initWithBook:(RVBook *)book {
if ((self = [super initWithFrame:[book pageBounds]]) != nil) {
book_ = book;
} return self;
}
- (void) setDelegate:(id)delegate {
delegate_ = delegate;
}
@end
|