if (toolbar_ != nil)
[toolbar_ setDelegate:nil];
+ for (RVPage *page in pages_)
+ [page setBook:nil];
+
[pages_ release];
[navbar_ release];
[transition_ release];
struct CGRect bounds = [self bounds];
CGSize navsize = [UINavigationBar defaultSize];
- CGRect navrect = {{0, 0}, navsize};
+ CGRect navrect = {{0, 0}, {bounds.size.width, navsize.height}};
navbar_ = [[RVNavigationBar alloc] initWithFrame:navrect];
+ [navbar_ setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
[self addSubview:navbar_];
[navbar_ setBarStyle:0];
bounds.origin.x, bounds.origin.y + navsize.height, bounds.size.width, bounds.size.height - navsize.height
)];
+ [transition_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
+
[self addSubview:transition_];
} return self;
}