I’ve mentioned a number of NSString add-on categories such as this one that allows you to integrate the iconic FontAwesome within your NSStrings and a useful fuzzy string matching library.
Here’s an NSString Category from Zach Davison that aims to bring the Ruby String methods to Objective-C called NSString Ruby.
The category implements over 60 of Ruby string methods in Objective-C including accessing subscripts through easily defined ranges, and regex matching.
As the readme states:
NSString+Ruby is an attempt to improve NSString by porting Ruby String methods onto a category on NSString.
This means you can use the majority of Ruby String methods in obj-c, with the exception of a few unnecessary, unimplemented (as of yet), and mutating methods (Mutation of strings is not the objective-c ‘way’, so we don’t do it here).
You can find NSString-Ruby on Github here.
A very nice add-on for NSString.
- NSDate Category Makes Using It Bearable
- Objective-C Additions For Ruby Like Iterators And More
- UIView Category Adding Simple Frame Changes And Command Chaining
- Handy UIView Category Providing Layout Helper Methods (Z-Ordering, Absolute Positioning And More)
- Category Extending NSString Allowing You To Use FontAwesome Icons In Your Apps
Original article: Open Source NSString Category Adding Many Ruby Inspired Helper Methods
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.