Giter Club home page Giter Club logo

Comments (15)

lilin87788 avatar lilin87788 commented on July 28, 2024

WeChatb73461efb5e9eea0c10ef3b691fb1672

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

是pod方式导入的吗

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

是的

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

我刚刚试了一下,pod导入的是不影响的。

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

直接使用BaseViewController应该是你项目里的
HXPHPicker.BaseViewController这样才能使用选择器里的

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

好,我再试一下,还不行我发demo给你

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

另外我的BaseViewConyroller 是objc的类 不是swift的类

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

我试了还是有问题,重现的步骤
1、创建一个OBJC 的BaseViewController
2、在Bridging-Header.h 文件中引入#import "BaseViewController.h" ,方便swift调用
3、创建一个swift的类比如BaseTableViewController 继承BaseViewController 就报错了

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

最好的解决办法是将OC的BaseViewController类名加一个前缀

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

https://stackoverflow.com/questions/48808576/naming-conflict-between-two-classes-from-my-project-and-a-pod

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

改动太大,我今天尝试了改我自己的,1000 多个地方要改,

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

而且我看了你的代码,那个Extension的部分比如你给Color写的Extension 很大的可能性 和别的库,包括我们自己的业务代码冲突

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

swift 有命名空间 不会出现问题的

from hxphpicker.

SilenceLove avatar SilenceLove commented on July 28, 2024

分类有些地方是需要优化一下,后面会改一下

from hxphpicker.

lilin87788 avatar lilin87788 commented on July 28, 2024

好吧我把我的类改成了CommonViewControler,编译成功,希望不要再来一个大神的库也有一个CommonViewController,其实我还是希望作者能改成有自己的前缀,这样的我们轻松点🤣🤣🤣🤣

from hxphpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.