开发者

UIWebView scroller object type

开发者 https://www.devze.com 2022-12-30 19:14 出处:网络
I need to access the scroller object of an UIWebView, so I do something like this : id obj = [[webView subviews] objectAtIndex:0];

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.

0

精彩评论

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

关注公众号