add specific code for ios 8 when the keyboard appears, after the issue with the width of the screen was fixed in this version