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.
- Host: GitHub
- URL: https://github.com/remirobert/rrcoloraveragebanner
- Owner: remirobert
- License: mit
- Created: 2014-06-25T22:14:08.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-28T20:56:04.000Z (almost 12 years ago)
- Last Synced: 2025-08-12T14:53:43.198Z (10 months ago)
- Language: Objective-C
- Size: 10.3 MB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RRColorAverageBanner
==================
[](https://travis-ci.org/remirobert/RRColorAverageBanner)
[](http://cocoadocs.org/docsets/RRColorAverageBanner)
[](http://cocoadocs.org/docsets/RRColorAverageBanner)
[](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
========

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.