Rightpoint Commonly Used Tools
A collection of helpful utilities and components for iOS development.
The podspec for RZUtils is fully segmented into subspecs by directory (effectively one subspec per individual category type or component). See below for examples.
To import only a specific category, component, or utility, the subspec should mirror the directory structure. For example:
Simply copy the relevant file into your project. If the files import any frameworks, link against those frameworks.
Completion blocks for
KVO with blocks and automatic observer removal on dealloc
Common date manipulations
Convenience methods for
Simplified attributed string initializer and other utils
Common string formatting methods
Replacement for string sizing methods deprecated in iOS 7.
Block-based interface for undo manager.
Block API for
UIColor creation utilities
Funky fresh font features
Calculates the average color of a UIImage instance.
Methods for resizing an image given an aspect ratio.
Method for snapshotting and creating a UIImage from a UIView using iOS7's
drawViewHierarchyInRect. Contains a faster version of Apple's image blur method for iOS7 (with view screenshot). iOS7+ only.
UIImageto return a solid color image of a specified size. Especially useful to set a state-dependent background color on
[aButton setBackgroundImage:[UIImage rz_solidColorImageWithSize:CGSizeMake(1.0f, 1.0f) color:[UIColor redColor]]].
Stretch and cap inset methods for
Methods for styling top, bottom, and middle tableview cells for grouped table views
Common code-level autolayout tasks made easier.
Borders on arbitrary sides of any
Easy adjustments to
Utility for scripting animation blocks in response to keyboard appearance/disappearance notifications.
UILabelsubclass that animates its text from one value to another with an optional custom formatting block.
A set of utilities for presenting various "About" elements such as the "Built by RZ" logo and feedback.
UIImageView-based animated .png sequences that calls a completion block when the animation is finished. Believe it or not, there is no way to do this otherwise.
UIControlsubclass that acts like a UIButton but allows the addition and layout of arbitrary subviews.
Is it a Collection View or a Table View? The world may never know... (Spoiler: It's a Collection View)
RZCollectionTableViewis a collection view layout and accompanying collection view and collection view cell subclasses that mimic the class/delegate interface, look, and feel of
UITableView, with a few added enhancements such as customizable section insets, row spacings, and more.
Utility for making collection view item insertion/deletion animations easier.
Basic concurrent NSOperation class that takes a block and executes it after a given time interval. Can be cancelled or reset.
CoreLocation made easy.
UIProgressViewis a little broken in iOS 7.0 (weird glitches when animating and resizing), and very broken in iOS 7.1 (can't set custom images; radar here).
RZProgressViewis a drop-in replacement that fixes these problems.
A basement/reveal menu component.
UIViewControllercontainer that uses a segment control to switch between an array of
UIViewControllersubclass for managing a single child view controller contained in any subview container of a parent. Useful for keeping one view static while another view contains one of many potential child view controllers. iOS7+ only.
Extends the functionality of
UISplitViewControllerincluding allowing it to be presented Modally.
Makes NSURLRequest phone calls that use telprompt by making a tel request to a static UIWebView, which in turn privately calls telprompt. This gives you the benifits of using telprompt without calling it from UIApplication where it is not specifically supported by Apple.
UIViewfor easily loading a subclass from a XIB file.
UIViewControllerthat manages a web view, with associated chrome.
Useful macros, mathematical functions, and more.
Useful extensions for working with GCD/libdispatch.
A header with debug log macros that extend
NSLog, including verbosity levels.
All utilities within this directory are intended for use in test code ONLY.
A utility for aiding in testing asynchronous operations.
RZUtils is distributed under an MIT License. See the LICENSE file for more details.
Contributions and pull requests are welcome. Please adhere to the following guidelines:
developbranch. We periodically coalesce updates into tagged releases with semantic version numbers, which are pushed as podspec updates then merged to master.
rz_for methods) for category methods and class names in order to avoid potential naming collisions.