Repeat image while scrolling on iphone

I have a UIImageView, now I want to repeat this image that it always appears again when scrolling left or right.

A small example:

alt text

Is it possible? it should feel like an endless cycle

+3
source share
2 answers

The word "infinite" obviously excludes a UISCrollViewor CATiledLayer.

, - UIImageView, ( ), , / UIImageView, , . UIImageView , /.

+1

, " ":

UIView * backgroundView = [[[UIView alloc] initWithFrame:frame] autorelease];
backgroundView.backgroundColor = [UIColor colorWithPatternImage:repeatingImage];

, , , "", .

+2

Source: https://habr.com/ru/post/1766017/


All Articles