How would I do this iOS animation on OSX?

后端 未结 2 1124
再見小時候
再見小時候 2020-12-15 05:00

I have a very simple animation in iOS that fades a view, resizes a container to fit another view, then fades that other view back in. It\'s quite easy to do and very straigh

2条回答
  •  北海茫月
    2020-12-15 05:19

    You can use:

      [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
        [context setDuration:2.0];
        //Animation code
      } completionHandler:^{
        //Completion Code
        NSLog(@"Completed");
      }];
    

提交回复
热议问题