Skip to content

Instantly share code, notes, and snippets.

@karlforshaw
Created February 15, 2010 09:41
Show Gist options
  • Save karlforshaw/304516 to your computer and use it in GitHub Desktop.
Save karlforshaw/304516 to your computer and use it in GitHub Desktop.
-(void)emptySlideNavigator
{
console.log('starting: ' + [[_slideNavigatorView subviews] count]);
// Remove all the previous buttons
if([[_slideNavigatorView subviews] count] > 0) {
for (var i=0; i<[[_slideNavigatorView subviews] count]; i++) {
console.log('removing:' + [_slideNavigatorView subviews][i] + 'at index:' + i );
//[[_slideNavigatorView subviews][i] removeFromSuperview];
}
console.log('ending at iteration:' + i + ' with' + [[_slideNavigatorView subviews] count]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment