diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-05-02 02:47:21 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:14:00 +0000 |
commit | 04fe134977f5dba0de222f0011d324894ccfe60f (patch) | |
tree | 5d2727e3c03b65bfb33fdf818dd0c748aaf6f5bb /UICaboodle/RVBook.mm | |
parent | ef055c6c978a33b6b6d9a0a874dc3723e0af3966 (diff) |
So close to getting landscape working, it hurts :(.
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; } |