代码之家  ›  专栏  ›  技术社区  ›  Alexsander Akers

从左向右翻转iOS4之前版本的UIView

  •  1
  • Alexsander Akers  · 技术社区  · 14 年前

    UIViewAnimationOptionTransitionFlipFromLeft 以及实现的方法,但是如何做类似的事情(例如翻转 UIView iPad ,例如。

    1 回复  |  直到 7 年前
        1
  •  6
  •   Alexsander Akers    14 年前
    [UIView beginAnimations: @"flipOverCard1" context: nil];
    [UIView setAnimationDuration: 0.5f];
    [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView: card1 cache: YES];
    
    // Stuff to do while transitioning
    
    [UIView commitAnimations];