now sometimes things just don't work as expected.
my UIView has a method to add itself to a given parent view like this
-(void)showPanelInView:(UIView*)view
{
self.hidden = YES;
[view addSubview:self];
[UIView beginAnimations:@"categories_panel" context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition: UIViewAnimationTransitionCurlDown forView:self cache:NO];
[UIView setAnimationDuration:0.4];
self.hidden = NO;
[UIView commitAnimations];
}
but it just appears with no animation whatsoever, similar method to remove itself from the parent looks just fine, can't get my head around this one ...
Anybody sees where's the problem?
The only thing I can think about is that addSubview actually doesn't do much when the subview is hidden ... or?