lanligang

Results 9 comments of lanligang

@silendir 这个是一些 js 的方法 首先了解一下 Highcharts 是如何添加 点击方法的 就好了。

这个需要实现两个协议方法,一个点击的还有一个是 移动的两者都实现后才能 知道点击的方法 @alex851209

或者是将 js 中本来是 滑动的方法改成点的方法 但是不推荐这样,有背以后使用 var clickedFunc = function(e) { var message = { name: this.series.name, y: this.y, x: this.x, category:this.category, offset: {plotX: this.plotX, plotY: this.plotY}, index: this.index, }; window.webkit.messageHandlers.mouseover.postMessage(message);...

@alex851209 这个是heightchart 的功能 不能滚动,确实会冲突,应该可以用双指缩放状态下可以拖动,我有时间看看heightchart 如何修改,如果真的有特殊情况你可以问一下你们公司的前端的使用eacharts 或者用其他手段,我们当时有一个特殊的地方,但是是不用滑动的当时我嵌入了eachars 从后端给的代码中扒出来js代码植入交互的 html文件 做了两端都能用的文件,可能名字我写的不太对,见谅。

修改源码 适配 -(void)setupLaunchAd{ UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; window.rootViewController = [XHLaunchAdController new]; window.rootViewController.view.backgroundColor = [UIColor clearColor]; window.rootViewController.view.userInteractionEnabled = NO; window.windowLevel = UIWindowLevelStatusBar + 1; window.hidden = NO; window.alpha...

@yangguanghei 需要注意window 引用问题 还有就是 如果使用 SceneDelegate 第三方回调 也 修改了 if (@available(iOS 13.0,)) { __weak UIWindow *weakWindow = window; [[NSNotificationCenter defaultCenter]addObserverForName:UISceneWillConnectNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { weakWindow.windowScene = note.object;...

> 3.9.10后使用了[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:YES];之后无法将view对象转成image对象 这个问题有遇到吗? pod 'XHLaunchAd-lib','~> 0.0.3'

因为创建的window 没有添加场景的原因 UIWindowScene -(void)scene:(UIWindowScene *)scene API_AVAILABLE(ios(13.0)){ _window.windowScene = scene; } window的这个属性不设置就会出现 显示不出来,希望作者适配一下 使用了 SceneDelegate 的情况; 如果没有适配的话可以改一下源码中的 监听 XHLaunchAd 这个文件中 添加 -(void)scene:(UIWindowScene *)scene API_AVAILABLE(ios(13.0)); 此方法 修改 +(void)setWaitDataDuration:(NSInteger )waitDataDuration; +(XHLaunchAd *)setWaitDataDuration:(NSInteger )waitDataDuration{...

//管理器这样使用没问题的; @implementation AdManager{ UIWindowScene *_scene API_AVAILABLE(ios(13.0)); } -(instancetype)init{ self =[super init]; if (self) { if(@available(iOS 13.0,*)){ [[NSNotificationCenter defaultCenter]addObserverForName:UISceneWillConnectNotification object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) { self->_scene = note.object; [self requestLaunchAd];...