我是通过以下方法打开界面的
-(void)ShowAppByID:(NSString) appID htmlName:(NSString)htmlName
{
NSString* pAppPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Pandora/apps/"];
NSString* pWWWPath;
self.view.frame = CGRectMake(0, 0, ScreenWidth, ScreenHeight);
PDRCore *core = [PDRCore Instance];
[core setContainerView:_containerView];
[core startAsAppClient];
pWWWPath = [NSString stringWithFormat:@"%@/%@/www", pAppPath, appID];
_pWWWPath = pWWWPath;
_htmlName = htmlName;
[[[PDRCore Instance] appManager] openAppAtLocation:pWWWPath withIndexPath:_htmlName withArgs:nil withDelegate:nil];
}
但是把界面退出去后,再进来,反复几次,就会出现白屏,不知道是什么原因,请解哈?
KS (作者)
我已经把 DEMO 发上来了,请看一下
2015-12-22 20:07