How to get the "animated" duration of various iOS method calls?

Many iOS installers have an “animated” change, such as setZoomScale: on UIScrollView , or, well, everything that has an animated: parameter.

My question is: a) How to determine what duration is used, and b) If necessary, how can I change this duration?

+4
source share
1 answer

Interest Ask. In my experience, these durations are platform dependent (iPad vs. iPhone) and are not documented or in any way available. Very often, for many system animations, the duration is about 0.35-0.40 seconds. A shorter animation is often exactly half the time. A longer animation is often exactly twice.

A rotation animation initiated by a device reorientation, for example, uses 0.4 s for landscape rotation to portrait (or vice versa), but 0.8 s for landscape rotation to the right or left (or portrait down to make portrait up).

However, there are exceptions. For example, a keyboard animation offers its duration in a called notification. It is not modifiable, but at least you can read it.

+4
source

All Articles