【问题标题】:iphone - Can self.view transitions be animated?iphone - self.view 转换可以动画吗?
【发布时间】:2010-02-18 17:56:32
【问题描述】:

下面的代码来自另一篇 SO 帖子,我的问题是使用此方法从一个视图到下一个视图的转换是否可以动画,如果可以,如何?

// origView is an instance variable/IBOutlet to your original view.
- (IBAction)switchToPhoneView:(id)sender {
  if (origView == nil)
    origView = self.view;
  self.view = phoneViewController.view;
}

- (IBAction)switchToOriginalView:(id)sender {
  self.view = origView;
}

【问题讨论】:

    标签: iphone animation views switch-statement


    【解决方案1】:

    听起来this Apple example 可能就是您要找的东西。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-19
      • 2012-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-04
      • 2012-12-27
      相关资源
      最近更新 更多