If you create a completely new application with one view and put this code in a button:
UIView *blah = [[UIView alloc] initWithFrame:CGRectMake(0,0,100,100)]; blah.backgroundColor = [UIColor grayColor]; [UIView transitionWithView:blah duration:1 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{ [self.view addSubview:blah]; } completion:^(BOOL finished){ }];
A subsection is added immediately without animation. If you add a subview first and then try to animate it ... you will get the same problem.
UIView *blah = [[UIView alloc] initWithFrame:CGRectMake(0,0,100,100)]; [self.view addSubview:blah]; [UIView transitionWithView:blah duration:1 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{ blah.backgroundColor = [UIColor grayColor]; } completion:^(BOOL finished){ }];
How on Earth do you activate a flip for spying or immediately after adding it?
source share