可定制的商品数量加减按钮 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://codercto.com/soft/d/6298.html

CSS3 Solutions

CSS3 Solutions

Marco Casario / Apress / 2012-8-13 / GBP 35.50

CSS3 brings a mass of changes, additions, and improvements to CSS across a range of new modules. Web designers and developers now have a whole host of new techniques up their sleeves, from working wit......一起来看看 《CSS3 Solutions》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码