Browse files

Merge pull request #721 from kosher-penguin/TTStripTab_Fix

TTTabStrip updateOverflow not being called
  • Loading branch information...
2 parents 9c36bed + b5b746a commit 36bc5661672c1dbfcd1fcd1805c414a1346f108b Adar Porat committed Jan 6, 2012
Showing with 14 additions and 1 deletion.
  1. +1 −1 src/Three20UI/Headers/TTTabStrip.h
  2. +13 −0 src/Three20UI/Sources/TTTabStrip.m
View
2 src/Three20UI/Headers/TTTabStrip.h
@@ -17,7 +17,7 @@
// UI
#import "Three20UI/TTTabBar.h"
-@interface TTTabStrip : TTTabBar {
+@interface TTTabStrip : TTTabBar <UIScrollViewDelegate> {
@private
TTView* _overflowLeft;
TTView* _overflowRight;
View
13 src/Three20UI/Sources/TTTabStrip.m
@@ -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);
@@ -153,6 +154,18 @@ - (void)layoutSubviews {
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
+#pragma mark UIScrollViewDelegate
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
+ [self updateOverflow];
+}
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////////////////////////
+#pragma mark -
#pragma mark TTTabBar

0 comments on commit 36bc566

Please sign in to comment.