Skip to content

danielmhanover/NGDynamicGradientCell

 
 

Repository files navigation

NGDynamicGradientCell

NGDynamicGradientCell Screenshot

Getting Started

Run the following commands to get started:

$ git clone --recursive https://github.com/nicolasgomollon/NGDynamicGradientCell.git
$ cd NGDynamicGradientCell
$ rake setup

DIY Instructions

  1. The NGDynamicGradientCell repo depends heavily on SSToolkit, so you need to follow the instructions for Adding SSToolkit to Your Project.

  2. Add this line to your Prefix.pch file (between #ifdef __OBJC__ and #endif:

#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
  1. Drag NGDynamicGradientCell.h, NGDynamicGradientCell.m, and the Images folder to your project.

  2. Take a look at MasterViewController.m for an example of the things that should be included in your project's UITableViewController.

  3. That's all.

Important Note

NGDynamicGradientCell uses ARC, and does not support Storyboards.

If your app does not use ARC, it is still possible to compile only certain files with ARC by adding a flag to the .m file(s) that require it:

  1. Select your main Xcode project from the sidebar in Xcode.

  2. Select the Build Phases tab.

  3. Under the Compile Sources group, double-click on the file name.

  4. Add -fobjc-arc to the popup window.

About

A reproduction of the dynamic gradient found in sent message bubbles of the iOS 7 Messages app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published