【发布时间】:2015-05-28 08:51:06
【问题描述】:
我在 WKInterfaceImage 中的 WKInterfaceTable 中有一个动画:
[[self.table setNumberOfRows:1 withRowType:@"Loading"];
WatchLoadingCell *cell = [self.table rowControllerAtIndex:0];
[cell.image setImageNamed:@"spin"];
[cell.image startAnimating];
我的图像被命名为 spin0 - spin30 并被添加到 watchKit App 目标中。
应用运行时,图片是静态的,即只显示spin0
任何想法为什么?
编辑:它适用于模拟器,但不适用于设备本身,仅当我通过从我的 Force Touch 菜单调用 [self awakeWithContext:nil]; 重新加载视图时它才适用于设备
我也尝试在willActivate 中启动动画,但没有成功
【问题讨论】:
标签: ios objective-c animation watchkit