开发者

Interact with UIView coordinates

Suppose I have a UIView that is 100x开发者_高级运维100 points and is aligned to the top left at 0x0. If I move it to the left 50 points, it's new position will be -50x0. Is there anyway to interact with the coordinate system such that I could mod the coordinates by some value and have the UIView behave a bit like a conveyer belt? If I move it out of bounds, the part of the view which was moved out of bounds just appears out the other side?

Thanks!


If what you are asking for is similar to a MARQUEE in the html world. I recommend you look at this post scrolling text as an example. There is sample code towards the end that does something like what you are asking about.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜