Skip to content
Paranoid text spacing in Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Classes
Pangu.Objective-C.xcodeproj
Pangu.Objective-C
Pangu.Objective-CTests
.gitignore
.travis.yml
LICENSE
Pangu.podspec
Readme.md

Readme.md

Pangu.objective-c

Travis CI codecov.io Cocoapods

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean), half-width English, digit and symbol characters.

Installation

The simplest option is to use pod "Pangu".

You can also add the Classes folder to your project, and then import Pangu.h. There are no further requirements.

Usage

#import "Pangu.h"

[NSString spacing:@"請問Jackie的鼻子有幾個?123個!"];
// 請問 Jackie 的鼻子有幾個?123 個!

UILabel *label = [UILable new];
label.text = @"請問Jackie的鼻子有幾個?123個!";
// 請問 Jackie 的鼻子有幾個?123 個!

License

Released under the MIT License.

You can’t perform that action at this time.