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

TTTabStrip updateOverflow not being called #721

Merged
merged 1 commit into from Jan 6, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Three20UI/Headers/TTTabStrip.h
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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