creator 获取屏幕尺寸无效,求路过的指点下,creator版本1.8.2

模拟器选择的是ipad尺寸:1024*768
打印cc.winSize.width的值居然是1080(我的设计尺寸的宽)
要怎么样获取手机屏幕分辨率

新人炮灰

this.realWidth = cc.director.getVisibleSize().width; 屏幕宽,
this.realHeight = cc.director.getVisibleSize().height; 屏幕高