support ipad and autoresizing

support ipad,support autoresizing