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布局错乱,不加他会导致白屏。求解答
1 个回复
生生不息的bug
我是安卓,部分机型安卓登录后也是白屏