The iOS framework that grows only as fast as its documentation
NIGroupedCellBackground Class Reference

Overview

The NIGroupedCellBackground class provides support for generating grouped UITableView cell backgrounds.

Tasks

(UIImage *) - imageForFirst:last:highlighted:
 

Method Documentation

imageForFirst:last:highlighted:

Returns an image for use with the given cell configuration.

- (UIImage*)imageForFirst:(BOOL)first last:(BOOL)last highlighted:(BOOL)highlighted;
Discussion

The returned image is cached internally after the first request. Changing any of the display properties will invalidate the cached images.

Parameters
firstYES will round the top corners.
lastYES will round the bottom corners.
highlighedYES will fill the contents with the highlightedInnerGradientColors.
Returns
A UIImage representing the given configuration.