Display issue on iphones

The search function takes up the whole screen, which is normally fine. However, because of the way that iOS handles it, the keyboard actually hides the search field. Obviously, this is bad and very confusing for iOS users. How can we fix it?