Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #721 from kosher-penguin/TTStripTab_Fix

TTTabStrip updateOverflow not being called
  • Loading branch information...
commit 36bc5661672c1dbfcd1fcd1805c414a1346f108b 2 parents 9c36bed + b5b746a
@aporat aporat authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.