fix the bug with PanGesutre hide keyboard

Look this picture
![messagetableviewbug](https://cloud.githubusercontent.com/assets/1969908/2789037/69bf0386-cba6-11e3-958c-04ef204c5545.gif)


Jack