无处不在的叶子
无处不在的叶子
  • 发布:2017-05-12 14:19
  • 更新:2017-05-12 14:20
  • 阅读:1695

应用启动白屏问题

分类:5+ SDK

iOS widget方式集成:
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
// 如果路径中包含中文,或Xcode工程的targets名为中文则需要对路径进行编码
//NSString pWWWPath2 = (NSString )CFURLCreateStringByAddingPercentEscapes( kCFAllocatorDefault, (CFStringRef)pTempString, NULL, NULL, kCFStringEncodingUTF8 );
if ([[PDRCore Instance] respondsToSelector:@selector(startAsAppClient)]) {
[[PDRCore Instance] performSelector:@selector(startAsAppClient)];
}**

// 设置5+SDK运行的View  
[[PDRCore Instance] setContainerView:_containerView];  

// 传入参数可以在页面中通过plus.runtime.arguments参数获取  
NSString* pArgus = @"id=plus.runtime.arguments";  
// 启动该应用  
pAppHandle = [[[PDRCore Instance] appManager] openAppAtLocation:pWWWPath withIndexPath:@"html/index.html" withArgs:pArgus withDelegate:nil];  

if ([[PDRCore Instance] respondsToSelector:@selector(startAsAppClient)]) {
[[PDRCore Instance] performSelector:@selector(startAsAppClient)];
}**这句代码是很古老的例子程序里的,一直没换,加上他会导致横屏h5布局错乱,不加他会导致白屏。求解答

2017-05-12 14:19 负责人:无 分享
已邀请:
生生不息的bug

生生不息的bug

我是安卓,部分机型安卓登录后也是白屏

该问题目前已经被锁定, 无法添加新回复