【问题标题】:WatchKit: Extra argument completion in call errorWatchKit:调用错误中的额外参数完成
【发布时间】:2019-06-21 18:09:11
【问题描述】:

我在 InterfaceController(手表扩展)上收到此错误,但在我的 iphone viewcontroller 上却没有:

self.animate(withDuration: 0.2, animations: {
    self.someButton.setAlpha(0.5)
}, completion: {

})

什么给了?

【问题讨论】:

    标签: xcode watchkit uiviewanimation


    【解决方案1】:

    在 UIKit 中,animate(alongsideTransition:completion:) 采用完成参数,但 WatchKit 的 animate(withDuration:animations:) 没有。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多