Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

xcode 14 一直不显示 #86

Closed
fengtook opened this issue Jul 21, 2023 · 3 comments
Closed

xcode 14 一直不显示 #86

fengtook opened this issue Jul 21, 2023 · 3 comments

Comments

@fengtook
Copy link

怎么修改都不显示

@iOS-Kel
Copy link

iOS-Kel commented Mar 9, 2024

我也是,自定义的popupView没有尺寸,设置都没用,真是尴尬😓

@fengtook
Copy link
Author

fengtook commented Apr 8, 2024

解决方法:
[MMPopupWindow sharedWindow].中的attachView

  • (UIView *)attachView
    {
    return self.rootViewController.view;
    }
    修改为
  • (UIView *)attachView
    {
    UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;
    UIViewController *visibleViewController = keyWindow.rootViewController;
    UIView *view = visibleViewController.view;
    return view;
    }

@fengtook
Copy link
Author

fengtook commented Apr 8, 2024

attachView尽量不要使用keywindow, 否则在使用一些键盘库的时候可能会出现问题

@fengtook fengtook closed this as completed Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants