UIWebView scroller object type
I need to access the scroller object of an UIWebView, so I do something like this :
id obj = [[webView subviews] objectAtIndex:0];
The problem is that the object returns is not the same in SDK 3 and SDK 4. In 4, it returns an UIScrollView object. In 3, it returns me an UIScroller object, the problem is that this class isn't documented, so I assume it's a private one, is my guess right ?
Thanks 开发者_开发问答for your help.
Yes UIScroller is a private class. It's probably a left-over during the 1.x→2.x API transition.
The interface of it can be found in http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIScroller.h.
精彩评论