Mam dziwny problem z blokami animacji iPhone'a. ten kod:UIView animateWithDuration: delay: działa dziwnie
[UIView animateWithDuration:2 delay: 0 options: 0 animations:
^(void) { [controller setBackgroundColor: [UIColor blueColor]]; }
completion: nil];
[UIView animateWithDuration:2 delay: 2 options: 0 animations:
^(void) { [controller setBackgroundColor: [UIColor redColor]]; }
completion: nil];
natychmiast ustawia tło na czerwono, bez przechodzenia w stan niebieski. samo nawet dla tego kodu:
[UIView animateWithDuration:2 delay: 0 options: 0 animations:
^(void) { [controller setBackgroundColor: [UIColor blueColor]]; }
completion:
^(BOOL wrwg) {
[UIView animateWithDuration:2 delay: 2 options: 0 animations:
^(void) { [controller setBackgroundColor: [UIColor redColor]]; }
completion: nil];
}];
To jest, gdzie próbuję uruchomić drugą animację po pierwszym zakończeniu. W czym problem?
Jaki typ obiektu to kontroler? UIView, UILabel, inne? – Anna