Latest 1.0.1
Homepage https://github.com/litt1e-p/LPPriceAttributedStringLabel
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit
Authors

price with attributedString format util for some money type include /USD / EUR / CNY / GRP

Install

  • use cocoapods

    pod 'LPPriceAttributedStringLabel', '~> 1.0.1'
  • manual
    just download & drag into your prj

Usage

Lots of properties for custom follow the sample prj or source code

    LPPriceAttributedStringLabel *al1 = [[LPPriceAttributedStringLabel alloc] init];
    al1.frame                         = CGRectMake(50, 200, self.view.frame.size.width, 50);
    al1.moneyType                     = LPMoneyTypeUSD;//USD / EUR / CNY / GRP
    al1.integerStringFont             = [UIFont systemFontOfSize:30.f];
    al1.decimalStringFont             = [UIFont systemFontOfSize:18.f];
    al1.integerStringFontColor        = [UIColor redColor];
    al1.decimalStringFontColor        = [UIColor purpleColor];
    al1.moneyTypeStringFont           = [UIFont systemFontOfSize:15.f];
    al1.moneyTypeStringFontColor      = [UIColor greenColor];
    al1.text                          = @"998.00";

Screenshot

LPPriceAttributedStringLabel

Update

  • v1.0.1

    add Great Britain Pound money type

  • v1.0.0

    origin source

Latest podspec

{
    "name": "LPPriceAttributedStringLabel",
    "version": "1.0.1",
    "summary": "price number with attributedString format",
    "description": "a price number with attributedString format util",
    "homepage": "https://github.com/litt1e-p/LPPriceAttributedStringLabel",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "litt1e-p": "[email protected]"
    },
    "source": {
        "git": "https://github.com/litt1e-p/LPPriceAttributedStringLabel.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "LPPriceAttributedStringLabel/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This