wangjin
wangjin
``` @interface Test @property (nonatomic, strong) UIWindow *textEffectsWindow; @end @implementation Test - (UIWindow *)textEffectsWindow { __block UIWindow *keyboardWindow = nil; [UIApplication.sharedApplication.windows enumerateObjectsUsingBlock:^(__kindof UIWindow * _Nonnull obj, NSUInteger idx, BOOL *...
> @oangkin : Where to write this code? 我更新了回复,在键盘出现的时候调用即可
> Is UITextEffectsWindow a private class? If it is, wouldn't this solution be a potential problem during submission to the App Store? 这个是私有类,我的app审核通过了,如果要实现这个功能目前没别的办法。
> Seems to work in the **editor** view. Call `[self hideTextEffectsWindow];` in `- (void)keyboardWillShowOrHide:(NSNotification *)notification {` just below `if (keyboardRect.origin.y < screeenHeight) {`. 你说的是对的
我也遇到了。 flutter 3.0.4 boost v3.0-null-safety-release.2.1 idlefish/flutterboost/containers/FlutterTextureHooker.java:62: 错误: 无法将类 FlutterRenderer中的方法 startRenderingToSurface应用到给定类型; flutterRenderer.startRenderingToSurface(surface); 错误: 不兼容的类型: Activity无法转换为ExclusiveAppComponent getFlutterEngine().getActivityControlSurface().attachToActivity(getActivity(), getLifecycle())
我也遇到了这个问题, `flutter_boost/src/boost_lifecycle_binding.dart:96` `════════ Exception caught by services library ══════════════════════════════════ 'package:flutter_boost[/src/boost_lifecycle_binding.dart]()': Failed assertion: line 96 pos 12: 'container != null': is not true. package:flutter_boost/src/boost_lifecycle_binding.dart:96 ════════════════════════════════════════════════════════════════════════════════`
看看是不是有一个页面仍存在,没有消失,只不过因为设置了透明看不到而已。这种情况可以先试试设置别透明,操作一下,看看啥情况。