diff options
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/RVBook.h | 1 | ||||
-rw-r--r-- | UICaboodle/RVBook.mm | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h index d0037cf..ff42c5a 100644 --- a/UICaboodle/RVBook.h +++ b/UICaboodle/RVBook.h @@ -63,6 +63,7 @@ - (void) reloadButtonsForPage:(RVPage *)page; - (NSString *) getTitleForPage:(RVPage *)page; +- (void) reloadButtons; - (void) reloadData; - (CGRect) pageBounds; diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 29e9513..7812a24 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -282,6 +282,14 @@ } } +- (void) reloadButtons { + size_t count([pages_ count]); + if (count != 0) { + RVPage *page([pages_ lastObject]); + [self reloadButtonsForPage:page]; + } +} + - (CGRect) pageBounds { return [transition_ bounds]; } |