diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-03-16 15:12:33 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:09:56 +0000 |
commit | dc63e78f274cc5733250b137b1ad09ea248445ff (patch) | |
tree | a282d1bba36cf9a444a8e1f8550e1d268abe0b25 /UICaboodle/RVBook.mm | |
parent | e590d1ff0e28b577012d6d98d9600d2f86a7459f (diff) |
That was at least interesting.
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r-- | UICaboodle/RVBook.mm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 28774ae..4b5a399 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -270,10 +270,16 @@ } - (void) reloadData { - for (int i(0), e([pages_ count]); i != e; ++i) { - RVPage *page([pages_ objectAtIndex:(e - i - 1)]); + size_t count([pages_ count]); + for (size_t i(0); i != count; ++i) { + RVPage *page([pages_ objectAtIndex:(count - i - 1)]); [page reloadData]; } + + if (count != 0) { + RVPage *page([pages_ lastObject]); + [self reloadButtonsForPage:page]; + } } - (CGRect) pageBounds { |