Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #721 from kosher-penguin/TTStripTab_Fix
Browse files Browse the repository at this point in the history
TTTabStrip updateOverflow not being called
  • Loading branch information
Adar Porat committed Jan 6, 2012
2 parents 9c36bed + b5b746a commit 36bc566
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Three20UI/Headers/TTTabStrip.h
Expand Up @@ -17,7 +17,7 @@
// UI
#import "Three20UI/TTTabBar.h"

@interface TTTabStrip : TTTabBar {
@interface TTTabStrip : TTTabBar <UIScrollViewDelegate> {
@private
TTView* _overflowLeft;
TTView* _overflowRight;
Expand Down
13 changes: 13 additions & 0 deletions src/Three20UI/Sources/TTTabStrip.m
Expand Up @@ -47,6 +47,7 @@ - (id)initWithFrame:(CGRect)frame {
_scrollView.showsVerticalScrollIndicator = NO;
_scrollView.showsHorizontalScrollIndicator = NO;
_scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
_scrollView.delegate = self;
[self addSubview:_scrollView];

self.style = TTSTYLE(tabStrip);
Expand Down Expand Up @@ -150,6 +151,18 @@ - (void)layoutSubviews {
}


///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
#pragma mark UIScrollViewDelegate


///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
[self updateOverflow];
}


///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
Expand Down

0 comments on commit 36bc566

Please sign in to comment.