From b17b6c8205910d9adb1cda94ef846c9c622e79cb Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Tue, 8 Mar 2011 15:49:06 +0100 Subject: [PATCH] fix bug, that do not remove subviews from stack view when removing all views --- TNStackView.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TNStackView.j b/TNStackView.j index 6240aec..82fddc1 100644 --- a/TNStackView.j +++ b/TNStackView.j @@ -131,6 +131,9 @@ */ - (IBAction)removeAllViews:(id)aSender { + for (var i = 0; i < [_dataSource count]; i++) + [[_dataSource objectAtIndex:i] removeFromSuperview]; + [_dataSource removeAllObjects]; [self reload];