Pergunta

O método RemoverFromSuperview relembra a imagem muito rapidamente, existe uma maneira de removê -la de maneira animada. obrigado

Outras dicas

Se você estiver segmentando iOS4 (snippet de código da UIView Docs):

[UIView animateWithDuration:0.2
                 animations:^{ table.alpha = 0.0; }
                 completion:^(BOOL finished){ [table removeFromSuperview]; }];

1) Insira sua nova subview (índice de 0 para que esteja oculto) na pilha de visualização.

    [window insertSubview:myNewView atIndex:0];

2) Em seguida, animação a exibição (direto dos documentos) é:

[UIView animateWithDuration:0.2
       animations:^{ view.alpha = 0.0; }
       completion:^(BOOL finished){ [view removeFromSuperview]; }]
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top