Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da79e2a

Browse files
committed
open the init method
1 parent e4d9071 commit da79e2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DigitalKeyboard/DigitalKeyboard.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// DigitalKeyboard.swift
3-
// KeyBoard
3+
// KeyBoard forKey
44
//
55
// Created by Jack on 16/9/15.
66
// Copyright © 2016年 Jack. All rights reserved.
@@ -38,7 +38,7 @@ public class DigitalKeyboard: UIInputView, UITextFieldDelegate {
3838
private var textFields = [UITextField]()
3939
private var superView: UIView? = nil
4040

41-
convenience init(view: UIView, field: UITextField?=nil) {
41+
public convenience init(view: UIView, field: UITextField?=nil) {
4242
self.init(frame: CGRect.zero, inputViewStyle: .keyboard)
4343
addKeyboard(view: view, field: field)
4444
}

DigitalKeyboardDemo/DigitalKeyboard/DigitalKeyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class DigitalKeyboard: UIInputView, UITextFieldDelegate {
3838
private var textFields = [UITextField]()
3939
private var superView: UIView? = nil
4040

41-
convenience init(view: UIView, field: UITextField?=nil) {
41+
public convenience init(view: UIView, field: UITextField?=nil) {
4242
self.init(frame: CGRect.zero, inputViewStyle: .keyboard)
4343
addKeyboard(view: view, field: field)
4444
}

0 commit comments

Comments
 (0)