Take a consideration of the keyboard's type change

I found that if the keyboard was present , and we changed the keyboard's type like from English to Chinese,the scrollview's contentOffset was not changed accordingly. So i decide to add some lines to detect the origin.y of the keyboard so that contentOffset would animated perfectly.