可定制的商品数量加减按钮 PPNumberButton

码农软件 · 软件分类 · 按钮(Button) · 2019-05-22 13:28:03

软件介绍

仿京东淘宝购物车商品的加减按钮,可定制程度较高,使用简单

  • 支持自定义加/减按钮的标题内容、背景图片;

  • 支持设置边框颜色;

  • 支持使用键盘输入;

  • 支持长按加/减按钮快速加减;

  • 支持block回调与delegate(代理)回调.

  • 支持使用xib创建、类方法创建、自定义大小

运行效果:

示例图

示例代码:

自定义加减按钮的标题

PPNumberButton *numberButton = [[PPNumberButton alloc] initWithFrame:CGRectMake(100, 220, 150, 44)];
    //设置加减按钮文字
[numberButton setTitleWithIncreaseTitle:@"加" decreaseTitle:@"减"];
numberButton.numberBlock = ^(NSString *num){
     NSLog(@"%@",num);
};
[self.view addSubview:numberButton];

本文地址:https://www.codercto.com/soft/d/6298.html

Beginning XSLT 2.0

Beginning XSLT 2.0

Jeni Tennison / Apress / 2005-07-22 / USD 49.99

This is an updated revision of Tennison's "Beginning XSLT", updated for the new revision of the XSLT standard. XSLT is a technology used to transform an XML document with one structure into another ......一起来看看 《Beginning XSLT 2.0》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具