Add some code for fixing the issue of iPad/iPhone.