diff options
Diffstat (limited to 'UICaboodle/RVBook.mm')
-rw-r--r-- | UICaboodle/RVBook.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 18de2b6..3fd525e 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -104,9 +104,10 @@ 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]; @@ -116,6 +117,8 @@ 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; } |