An open API service indexing awesome lists of open source software.

https://github.com/remirobert/rrcoloraveragebanner

Banner with color average of a UIImage, inside a UIImageView for display a title or something else.
https://github.com/remirobert/rrcoloraveragebanner

Last synced: 10 months ago
JSON representation

Banner with color average of a UIImage, inside a UIImageView for display a title or something else.

Awesome Lists containing this project

README

          

RRColorAverageBanner
==================

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

Allows you to add a banner to your images to display content or explanations. It goes very well with the image, since it uses the average of all pixels of the image color.

The banner is a UIView containing a UILabel, but can theoretically do what you want!

Overview
========

![Alt text](https://raw.githubusercontent.com/remirobert/RRColorAverageBanner/master/projectTest/record2.gif "Optional title")

Usage
=====

``` Objective-c
- (void) displayPicture {
UIImageView *v1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1"]];
v1.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.width);

[v1 addBannerImage];
[v1 getBannerView].textBanner.text = @"content text";

[self.view addSubView:v1];
}

```
## Installation

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

pod "RRColorAverageBanner"

## Author

remirobert, remi.robert@epitech.eu

## License

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