Implement map technology creating tile to draw infinity images locally or remotely. The best thing of using this technology is saving phone memory because all the images are redraw in tiles.
This library is dedicated for "អូនស្អាតរបស់បង"
In the source files where you need to use the library, import the header file:
#import "InfinitScrollView.h"
You have several methods for initialization:
NSArray * localImageArray = @[
[UIImage imageNamed:@"1.jpg"],
[UIImage imageNamed:@"2.jpg"],
[UIImage imageNamed:@"3.jpg"]
];
self.infinitScrollView = [[InfinitScrollView alloc] initWithFrame:self.view.frame withArray:localImageArray];
[self.infinitScrollView setInfinitDelegate:self];
[self.view addSubview:self.infinitScrollView];
To handle actions you can use initialization methods with blocks or delegate, or implement it after initialization.
- (void)InfinitScrollView:(InfinitScrollView *)scrollView didTapOnImage:(UIImage *)image;