addSubview animation
Tengo UIView principal donde visualizo datos diferentes. Luego puse un botón, que muestra una subvista como esta:
- (IBAction) buttonClicked:(id)sender
{
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(25,25,50,20)];
UILabel *newLabel = [[UILabel alloc] initWithFrame:CGRectMake(25,25,50,25)];
newLabel.text = @"some text";
[newView addSubview:newLabel];
[self.view addSubview:newView];
[newLabel release];
[newView release];
}
newView parece estar bien, pero no se anima de ninguna manera, solo aparece de inmediato. ¿Cómo puedo agregar algún tipo de animación cuando aparece newView? Como hacer zoom o deslizar hacia abajo o algo así. ¿Hay algún código simple?