目前把转向的功能放到button上可以正常切换横向和直立,那如果转动手机为横向或直立该如何更改cc.view.setDesignResolutionSize 的大小呢?该如何检测到手机是横向或是直立呢?
Solution Found
cc.view.setResizeCallback(); and cc.view.getFrameSize() to detect is
(frameSize.height > frameSize.width) or
(frameSize.width > frameSize.height) that to set Landscape or Portrait