RZNumberPad简化自定义数字键盘设计
RZ数字键盘下次设计需要另一个自定义数字键盘,不要畏缩。而是为这项任务感到高兴,RZNumberPad使这个任务变得非常简单。用法RZNumberPad提供了一个基类,其中包含逻辑并执行每个数字键盘固有的任务。无需为每个新的设计要求重新发明轮子,只需创建RZNumberPad的子类并覆盖适当的方法来指定样式。自定义覆盖的关键方法:
// The size in points of each button in the number pad.
- ( CGSize )buttonSize;
// The amount of space between each button.
// The X value is horizontal spacing, and Y value is vertical spacing.
- ( CGPoint )buttonSpacing;
下载地址
用户评论