Latest 1.0.0
Homepage https://github.com/WelkinXie/WKPinyin
License MIT
Platforms ios 8.0, requires ARC
Authors

汉字转拼音,可选择是否显示音标。

使用方法

  • pod ‘WKPinyin’ 或者直接下载并把项目中的 WKPinyin.swift 放进项目中。
  • WKPinyin 是String的extension,因此String的对象直接调用即可:

    text.diacriticPinyin :text带音标的拼音,例:zhōng guó
    text.pinyin          :text不带音标的拼音,例:zhong guo

Latest podspec

{
    "name": "WKPinyin",
    "version": "1.0.0",
    "summary": "u6c49u5b57u8f6cu62fcu97f3uff0cu53efu9009u62e9u662fu5426u663eu793au97f3u6807u3002",
    "homepage": "https://github.com/WelkinXie/WKPinyin",
    "license": "MIT",
    "authors": {
        "Welkin Xie": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/WelkinXie/WKPinyin.git",
        "tag": "1.0.0"
    },
    "source_files": "WKPinyin/WKPinyin/*.{swift}",
    "requires_arc": true
}

Pin It on Pinterest

Share This