Getting started creating custom view transitions

后端 未结 3 661
长发绾君心
长发绾君心 2021-02-06 08:15

I\'m looking for tutorials on creating custom view transitions.

In particular, transitions that involve elements other than just the UIViews being affected, such as play

3条回答
  •  广开言路
    2021-02-06 08:51

    Here is a quick guide to using the standard UIView transitions. http://chris-software.com/index.php/dev-center/view-transitions/

    If you want to fade into a view use something like this. This works with any type of element with an alpha property, such as UIImageViews, etc. someView.alpha = 0; [viewController.view addSubview:someView];

    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:.5];
    [UIView setAnimationDelegate:self];     
    someView.alpha = 1;
    [UIView commitAnimations];
    

提交回复
热议问题