Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

TTTabStrip updateOverflow not being called #721

Merged
merged 1 commit into from

2 participants

@aporat

closes #696.

I had the same layout issue in my apps

@jwang

sweet. Thanks!

This was referenced
@aporat

@jwang, opps. looks like we forget to actually merge this pull request (so wasn't released in 1.0.10)

@aporat aporat merged commit 36bc566 into facebookarchive:development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 17, 2011
  1. @aporat

    TTStripTab updateoverflow fix

    aporat authored
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.