开发者

UIScrollView resets contentSize

Why does a UIScrollView instance reset its contentSize (in my case to the frame, and screen, width) by the time the dele开发者_如何学运维gate scrollViewDidEndZooming:(UIScrollView *) aScrollView withView:(UIView *) aView atScale:(float) aScale gets called?

What should I do about this? For example, do I really need to remind the instance of its contentSize, perhaps in the layoutSubviews method?


I believe the delegate method you are looking for is

  • (void)scrollViewDidZoom:(UIScrollView *)scrollView

It tells the delegate that the scroll view’s zoom factor changed.

http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIScrollViewDelegate_Protocol/Reference/UIScrollViewDelegate.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜