創建類似于iOS 7/8鍵盤風格的按紐菜單:JCDialPad
JCDialPad是一個可定制視圖,它可以讓你創建類似于iOS 7/8鍵盤和pin pad 視圖風格的按鈕菜單。下面是使用JCDialPad創建的視圖的一些例子:
特性
- 完全可自定義的按鈕包含默認值
- 在您輸入的電話號碼時自動格式化
- Set a background image with a frosted overlay
- Handle button presses in multiple different ways using one simple delegate method
- Buttons are automatically laid out in centered rows of three
- Most colors and fonts can be customized using UIAppearance, or set directly
- Scales properly on all device sizes including iPad </ul>
用法
Creating a standard keypad view with buttons 1-9, *, and # is as simple as this:
JCDialPad *pad = [[JCDialPad alloc] initWithFrame:self.view.bounds]; pad.buttons = [JCDialPad defaultButtons]; pad.delegate = self; [self.view addSubview:pad];https://github.com/jconst/JCDialPad
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!