 import Foundation
 
 public class XBKeyboardManager {
+    //MARK: private property
     private var inputViews = [UIView]()
     private var commonScrollView: UIScrollView?
     private weak var viewController: UIViewController? { return getViewContoller() }

    
    //MARK: - notification
    private func addNotification() {
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(XBKeyboardManager.showKeyboard), name: UIKeyboardWillShowNotification, object: nil)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(XBKeyboardManager.hideKeyboard), name: UIKeyboardWillHideNotification, object: nil)
    }
    
    private func removeNotification() {
        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIKeyboardWillShowNotification, object: nil)
        NSNotificationCenter.defaultCenter().removeObserver(self, name: UIKeyboardWillHideNotification, object: nil)
    }
    
    @objc private func showKeyboard(notification: NSNotification) {
        guard let userInfo = notification.userInfo else {return}
        //键盘的frame数据
        guard let rect = (userInfo[UIKeyboardFrameEndUserInfoKey] as? NSValue)?.CGRectValue() else {return}

    private var contentInsetBottoms = [CGFloat]()
    private var targetInputViewPoint = [CGPoint]()
    
    //MARK: public property
    
    /// UIKeyboardWillShowNotification时为true，UIKeyboardDidShowNotification时为false
    public var isKeyboardWillShow = false
    /// UIKeyboardWillHideNotification时为true，UIKeyboardDidHideNotification时为false
    public var isKeyboardWillHide = false
    
    
    //MARK: life methods
    
    /**
     适用于所有的输入视图(textField、textview)都在ViewController的view中
     
