Latest0.2.0
Homepagehttps://github.com/banxi1988/RMB
LicenseMIT
Platformsios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

用法

安装

  1. 使用 CocoasPods。
pod "RMB"
  1. 手动,将项目的 RMB.swift 文件添加到你的项目中。

使用

可以通过查看测试用例,如下,对它就是这样使用的。
如果是使用 pod 安装,先导入: import RMB

    XCTAssertEqual(convertNumberToAmountOfRMB(10300.05), "壹万零叁佰元零伍分")
    XCTAssertEqual(convertNumberToAmountOfRMB(130.05), "壹佰叁拾元零伍分")
    XCTAssertEqual(convertNumberToAmountOfRMB(13.06), "壹拾叁元零陆分")
    XCTAssertEqual(convertNumberToAmountOfRMB(3.58), "叁元伍角捌分")
    XCTAssertEqual(convertNumberToAmountOfRMB(9.7), "玖元柒角")
    XCTAssertEqual(convertNumberToAmountOfRMB(1234567890.08),"壹拾贰亿叁仟肆佰伍拾陆万柒仟捌佰玖拾元零捌分")

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "RMB"

Author

banxi1988, [email protected]

License

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

Latest podspec

{
    "name": "RMB",
    "version": "0.2.0",
    "summary": "u57fau4e8e Swift u7684u4ebau6c11u5e01u8f6cu6362u5904u7406u5de5u5177u5305",
    "description": "u57fau4e8e Swift 2 u7684u4ebau6c11u5e01u5904u7406u5de5u5177u5305u3002n1. u76eeu524du76eeu524du8f6cu6362u4ebau6c11u5e01u5927u5c0fu91d1u989du8f6cu6362uff0cu652fu6301u5c0fu6570u652fu6301u56dbu820du4e94u5165u3002n2. u652fu6301u8d85u5927u91d1u989du8f6cu6362u3002",
    "homepage": "https://github.com/banxi1988/RMB",
    "license": "MIT",
    "authors": {
        "banxi1988": "[email protected]"
    },
    "source": {
        "git": "https://github.com/banxi1988/RMB.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://weibo.com/banxi1988",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "RMB": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This