I am trying to create an animation with a map translation on iOS, and I fail.
Basically I have a global view with a controller. Inside I have a View holder that contains a map.
I have a front map, which is the mainView, and then a back side of the map, which is flipSideView.
I tried to do something like this:
[UIView animateWithDuration:1.0 delay:0 options:UIModalTransitionStyleFlipHorizontal animations:^{ NSLog(@"started"); [mainView removeFromSuperview]; [holderView addSubview:flipsideView]; } completion:^(BOOL finished){ NSLog(@"completed"); }];
It doesnβt work, it does strange things, I tried many different things, but I canβt get it to work perfectly. Can anyone think how I can do this?
thanks
source share