Skip to content

Commit

Permalink
fix bug, that do not remove subviews from stack view when removing al…
Browse files Browse the repository at this point in the history
…l views
  • Loading branch information
Antoine Mercadal committed Mar 8, 2011
1 parent 199ad93 commit b17b6c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TNStackView.j
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@
*/
- (IBAction)removeAllViews:(id)aSender
{
for (var i = 0; i < [_dataSource count]; i++)
[[_dataSource objectAtIndex:i] removeFromSuperview];

[_dataSource removeAllObjects];

[self reload];
Expand Down

0 comments on commit b17b6c8

Please sign in to comment.