/InfinitImageView-iOS-ObjC

Using map technology to draw infinite loop image without wasting memory.

Primary LanguageObjective-CMIT LicenseMIT

infinitImageView

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 "អូនស្អាតរបស់បង"

My Linkin

My Profile

Preview

Usage

In the source files where you need to use the library, import the header file:

#import "InfinitScrollView.h"

Initialization

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];

Handle actions

To handle actions you can use initialization methods with blocks or delegate, or implement it after initialization.

Delegate

- (void)InfinitScrollView:(InfinitScrollView *)scrollView didTapOnImage:(UIImage *)image;