fix in ios8,with and height exchange error

fix in ios8,with and height exchange error