UIScrollView -[zoomToRect: animated:] broken

Originator:klausa
Number:rdar://14467911 Date Originated:17-Jul-2013 03:34 PM
Status:Insufficient information Resolved:
Product:iPhone SDK Product Version:6.1
Classification:UI/Usability Reproducible:
 
Summary:

UIScrollView -[zoomToRect: animated:] method is broken. If scrollView is already at zoomScale that -[zoomToRect: animated:] will result, block based animation is broken - i.e. not called.

Steps to Reproduce:

1. Zoom UIScrollView to maximumScaleFactor.
2. Call zoomToRect wrapped in UIView block based animation with such CGRect that it will zoom to maximumScaleFactor.

Expected Results:

If call to zoomToRect is wrapped in animation block (e.g. [UIView animateWithDuration:0.85 animations:^{ [self.scrollView zoomToRect: rect animated: NO];}], I expect the animation to take 0.85 seconds.

Actual Results:

Animation block is disregarded and animation takes usual amount of time (which is WAY TO SHORT to be useful in many cases).

Regression:

Notes:

There's quite simple workaround, just change zoomScaleFactor to something teeny tiny bit smaller, i.e decrease it by 0.00001f, but that's obviously not TheRightWay.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!