<commit_before># RDImageViewerController

[![CI Status](http://img.shields.io/travis/Akira Matsuda/RDImageViewerController.svg?style=flat)](https://travis-ci.org/Akira Matsuda/RDImageViewerController)
[![Version](https://img.shields.io/cocoapods/v/RDImageViewerController.svg?style=flat)](http://cocoadocs.org/docsets/RDImageViewerController)
[![License](https://img.shields.io/cocoapods/l/RDImageViewerController.svg?style=flat)](http://cocoadocs.org/docsets/RDImageViewerController)
[![Platform](https://img.shields.io/cocoapods/p/RDImageViewerController.svg?style=flat)](http://cocoadocs.org/docsets/RDImageViewerController)

![](https://raw.githubusercontent.com/0x0c/RDImageViewerController/master/Example/Screenshot/1.png)
![](https://raw.githubusercontent.com/0x0c/RDImageViewerController/master/Example/Screenshot/2.png)

## Usage

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

- Runs on iOS 7.0 or later.

## Installation

RDImageViewerController is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

    pod "RDImageViewerController"

## Usage



## Author

<NAME>, <EMAIL>

## License

RDImageViewerController is available under the MIT license. See the LICENSE file for more info.
<commit_msg>fix README<commit_after># RDImageViewerController

[![CI Status](http://img.shields.io/travis/Akira Matsuda/RDImageViewerController.svg?style=flat)](https://travis-ci.org/Akira Matsuda/RDImageViewerController)
[![Version](https://img.shields.io/cocoapods/v/RDImageViewerController.svg?style=flat)](http://cocoadocs.org/docsets/RDImageViewerController)
[![License](https://img.shields.io/cocoapods/l/RDImageViewerController.svg?style=flat)](http://cocoadocs.org/docsets/RDImageViewerController)
[![Platform](https://img.shields.io/cocoapods/p/RDImageViewerController.svg?style=flat)](http://cocoadocs.org/docsets/RDImageViewerController)

![](https://raw.githubusercontent.com/0x0c/RDImageViewerController/master/Example/Screenshot/1.png)
![](https://raw.githubusercontent.com/0x0c/RDImageViewerController/master/Example/Screenshot/2.png)

## Usage

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

- Runs on iOS 7.0 or later.

## Installation

RDImageViewerController is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

    pod "RDImageViewerController"

## Usage

Initialize RDImageViewerController with number of images and image handler.

	RDImageViewerController *viewController = [[RDImageViewerController alloc] initWithImageHandler:^UIImage *(NSInteger pageIndex) {
		NSString *imageName = [NSString stringWithFormat:@"%ld.JPG", (long)pageIndex + 1];
		return [UIImage imageNamed:imageName];
	} numberOfImage:10];

or

	RDImageViewerController *viewController = [[RDImageViewerController alloc] initWithAsynchronousImageHandler:^(RDImageScrollView *imageView, NSInteger pageIndex) {
		// set image in another thread(not main thread)
	} numberOfImages:array.count];

You can set the number of preloading images like this.

	RDImageViewerController *viewController = ...
	viewController.preloadCount = 2;

![](https://raw.githubusercontent.com/0x0c/RDImageViewerController/master/Example/Screenshot/3.png)
![](https://raw.githubusercontent.com/0x0c/RDImageViewerController/master/Example/Screenshot/4.png)

## Author

<NAME>, <EMAIL>

## License

RDImageViewerController is available under the MIT license. See the LICENSE file for more info.

{'fraction_non_alphanumeric': 0.12824048538334254, 'fraction_numerical': 0.007170435741864313, 'mean_word_length': 6.342105263157895, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5462719', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1118, 'n_words': 208}