小牛的问题:noteHeightOfRowsWithIndexesChanged:不动画 [英] Mavericks issue: noteHeightOfRowsWithIndexesChanged: does not animate

查看:252
本文介绍了小牛的问题:noteHeightOfRowsWithIndexesChanged:不动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当调用 [myTableView noteHeightOfRowsWithIndexesChanged:myIndexSet] NSAnimationContext 组中,行的高度上10.8动画的,但不会对10.9动画:它瞬间跳到最终高度代替

When calling [myTableView noteHeightOfRowsWithIndexesChanged: myIndexSet] inside an NSAnimationContext group, the height of the rows animates on 10.8, but does not animate on 10.9: it jumps instantaneously to the final height instead.

一些实验后,我发现,它并设置动画10.9,如果你不说电话到在 NSAnimationContext 组表视图。

After some experimentation, I found that it does animate on 10.9 if you do not place that call to the table view in an NSAnimationContext group.

这结果是令人失望的,因为我想对中行的其它动画与来自表视图高度动画同步。任何想法?

This result is a bummer because I wanted to have other animations on the rows in sync with the height animation from the table view. Any ideas?

推荐答案

您可以尝试setAllowsImplicitAnimations:YES

You might try setAllowsImplicitAnimations: YES

有关性能或遗留原因,一些AppKit的接口的对象可能不会设置为默认值。最棘手的部分是关于继承该位。
很多事情都被继承,但并不总是在直接对象文档明确记载的重要部分。
这就是有些事情在了AppKit发行说明或仅在WWDC的视频。

For performance or legacy reasons some AppKit interface objects might not set that as a default. The tricky part is that bit about inheritance. Many things have important parts that are inherited but not always documented clearly in the immediate object docs. This is where some things are in AppKit release notes or only in WWDC videos.

这篇关于小牛的问题:noteHeightOfRowsWithIndexesChanged:不动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆