Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义一个继承自QMUIModalPresentationViewController的vc后,只要import后,就会报错 #1530

Open
kouxuansheng opened this issue Oct 12, 2023 · 5 comments

Comments

@kouxuansheng
Copy link

Bug 表现
问题的具体描述
自定义一个继承自QMUIModalPresentationViewController的vc,在需要使用的ViewController中引入后,框架里就会报错,但在其他的视图控制器中引入使用,就并不会报错
截图
Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图
image

@MoLice
Copy link
Collaborator

MoLice commented Oct 12, 2023

你项目里引入了多个 QMUIKit?比如另一个库也引入了 QMUIKit

@kouxuansheng
Copy link
Author

工程里面只有一个QMUIKit,在其他控制器中引入并没有问题,在某些控制器中引入就会报错

@MoLice
Copy link
Collaborator

MoLice commented Oct 13, 2023

在你项目里全局搜一下定义应该就可以了吧

@kouxuansheng
Copy link
Author

不明白你在说什么,好像这个问题只在新版Xcode上会出现,旧版本的没问题

@kouxuansheng
Copy link
Author

image image image image 想知道这到底是什么原因引起的报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants