iOS上百度输入法引起的问题

时间:2023-03-08 16:57:00
iOS上百度输入法引起的问题
 /*
     UIKeyboardWillShowNotification 通知下的数据
     
     百度
    {
        UIKeyboardAnimationCurveUserInfoKey = 7;
        UIKeyboardAnimationDurationUserInfoKey = "0.25";
        UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 44}}";
        UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 590}";
        UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 546}";
        UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 568}, {320, 44}}";
        UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 524}, {320, 44}}";
    }
    */
    
    /*
     九宫格
    {
        UIKeyboardAnimationCurveUserInfoKey = 7;
        UIKeyboardAnimationDurationUserInfoKey = "0.25";
        UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 295.5}}";
        UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 715.75}";
        UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 420.25}";
        UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 568}, {320, 295.5}}";
        UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 272.5}, {320, 295.5}}";
    }
    */

// 百度输入法的这个事件通知中, 只有这些数据, 和系统的完全不一样, 不知道他们怎么想的, 导致一些第三库中使用这个时, 会出错!

待续吧,已经碰到两个了