Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS: After one animation, all other views start animating
    primarykey
    data
    text
    <p>I have a very peculiar problem. In an iOS app I've developed, after running the animations below I find that various other elements of the UI now animate whenever they appear. </p> <p>For instance, once these animations below are run, every time I navigate to a new tab in my app, all the UI elements animate from the top left corner of the iphone to their proper positions. I have specified no animations for these UI elements in the other tabs and in fact even elements that I have no access to, like the activity indicator in the iPhone status bar, begin to animate all on their own.</p> <p>What is going on? Why does this occur only after the animation below is executed? Before running this animation (with a button press) all other UI elements in other app tabs do not animate at all when they appear, which is the expected behaviour.</p> <pre><code>- (IBAction) btnChosenPostcodeClicked:(id)sender { //prep animations startView.alpha = 1.0; postcodeView.alpha = 0.0; [self.view addSubview:postcodeView]; [UIView beginAnimations:@"ChosenPostcodeAnimation01" context:nil]; [UIView setAnimationDuration:animationSpeed]; [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.view cache:YES]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(chosenPostCodeFadeoutAnimationDone:finished:context:)]; startView.alpha = 0.0; [UIView commitAnimations]; } - (void)chosenPostCodeFadeoutAnimationDone:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { //prep animations postcodeView.alpha = 0.0; [UIView beginAnimations:@"ChosenPostcodeAnimation02" context:nil]; [UIView setAnimationDuration:animationSpeed]; [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.view cache:YES]; CGRect newRect = CGRectMake(42, 157, 239, 180); imvBubble.frame = newRect; postcodeView.alpha = 1.0; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload