一、场景加载
local root = display.newScene("MainScene")
local transition = display.wrapSceneWithTransition(root, "fade", 0.5, display.COLOR_WHITE)
display.replaceScene(transition)
二、IOS工程设置为横屏报错
'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientate
修改如下代码:
// For ios6.0 and higher, use supportedInterfaceOrientations & shouldAutorotate instead
- (NSUInteger) supportedInterfaceOrientations
{
#ifdef __IPHONE_6_0
//return UIInterfaceOrientationMaskPortrait;
return UIInterfaceOrientationMaskAll;
#endif
}