Created
October 3, 2011 04:21
-
-
Save Nub/1258429 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)addSubview:(UIView *)view{ | |
| if (view.frame.size.width == 7) { | |
| [super addSubview:view]; | |
| return;//Ignore scrollbar | |
| } | |
| CGSize currentSize = self.contentSize; | |
| currentSize.height += view.frame.size.height; | |
| [self setContentSize: currentSize]; | |
| CGRect thisFrame = view.frame; | |
| thisFrame.size.width = self.frame.size.width; | |
| view.frame = thisFrame; | |
| CollapseView *newCollapse = [CollapseView collapseViewFromView:view]; | |
| //[newCollapse setCollapseAmount:0.45]; | |
| [super addSubview:newCollapse]; | |
| [self setNeedsLayout]; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment