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