开发者

Can i redefine the (0,0) point in a UIScrollView?

I have a scrollview with many items on it . i would like to scroll down to a point and save that point as my new (0,0) point (i.e. all other items attached to the scroll view will see 开发者_如何学编程that point as a (0,0) point . Can i do so ?


Use contentInset (see What's the UIScrollView contentInset property for?). Additionally, you might want to move the view that contains your other items within the UIScrollView to the new zero point (by setting its frame), but I don't think that's what you're looking for.

The contentOffset is relevant, too, if you need to scroll to that point programmatically.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜