Итак, я довольно долго искал это и, похоже, не могу найти решение.
Этот код работает:
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationDuration:5];
[c setCenter:CGPointMake(200, 200)];
[UIView commitAnimations];
Этот код не:
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:c cache:YES];
[UIView setAnimationDuration:5];
[c exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
[UIView commitAnimations];
И я знаю, что вызов exchangeSubViewAtIndex работает, потому что, если я удаляю его из блока анимации, он работает как положено.
Кто-нибудь знает, почему этот переход не будет запущен? Что-то, что мне нужно импортировать?