Skip to content

PhraseKit - string placeholders formatting for ObjetiveC

License

Notifications You must be signed in to change notification settings

fewlaps/PhraseKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhraseKit

##A simple category for replacing custom placeholders (strings enclosed in brackets) with values from NSDictionary.

CI Status Version License Platform

Usage

NSString* stringWithPlaceholders = @"lest play with placeholders {one} and {two}";
NSString* newString = [stringWithPlaceholders replacePlaceholdersUsingDictionary:@{@"one":@"value 1",@"two":@"value two"}];

Installation

PhraseKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PhraseKit"

Author

Fewlaps, [email protected]

License

PhraseKit is available under the MIT license. See the LICENSE file for more info.