Permalink
Browse files

TTStripTab updateoverflow fix

  • Loading branch information...
1 parent 59ede0a commit b5b746a5ca4e9fe63b6f80bb4b00c3752be471d2 @aporat aporat committed Nov 17, 2011
Showing with 14 additions and 1 deletion.
  1. +1 −1 src/Three20UI/Headers/TTTabStrip.h
  2. +13 −0 src/Three20UI/Sources/TTTabStrip.m
@@ -17,7 +17,7 @@
// UI
#import "Three20UI/TTTabBar.h"
-@interface TTTabStrip : TTTabBar {
+@interface TTTabStrip : TTTabBar <UIScrollViewDelegate> {
@private
TTView* _overflowLeft;
TTView* _overflowRight;
@@ -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 b5b746a

Please sign in to comment.