LPPriceAttributedStringLabel 1.0.1

LPPriceAttributedStringLabel 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2016

Maintained by litt1e-p.



  • By
  • litt1e-p

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

Install

  • use cocoapods
pod 'LPPriceAttributedStringLabel', '~> 1.0.0'
  • 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