Permalink
Browse files

Orientation forces resizing

  • Loading branch information...
1 parent ada11ca commit 12dd19bdf6231cf177e84238784789180176534a @thevole committed May 23, 2010
Showing with 446 additions and 2 deletions.
  1. +4 −2 Classes/HorizontalTableView.m
  2. +442 −0 ColumnView.xib
@@ -73,7 +73,8 @@ - (UIView *)viewForPhysicalPage:(NSUInteger)pageIndex {
}
- (CGSize)pageSize {
- return self.scrollView.frame.size;
+ CGRect rect = self.scrollView.bounds;
+ return rect.size;
}
- (CGFloat)columnWidth {
@@ -190,10 +191,11 @@ - (void)prepareView {
scroller.frame = rect;
scroller.delegate = self;
scroller.autoresizesSubviews = YES;
+ scroller.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
//self.scrollView.pagingEnabled = YES;
scroller.showsHorizontalScrollIndicator = YES;
- scroller.showsVerticalScrollIndicator = YES;
+ scroller.showsVerticalScrollIndicator = NO;
self.scrollView = scroller;
[self addSubview:scroller];
[scroller release], scroller = nil;
Oops, something went wrong.

0 comments on commit 12dd19b

Please sign in to comment.