gsdios / SDAutoLayout

One line of code to implement automatic layout. 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based on runtime.
MIT License
5.9k stars 1.28k forks source link

framework失效的问题 #293

Open xuguoyong opened 6 years ago

xuguoyong commented 6 years ago

framework失效的问题 如果将SDAutolayout随同代码打包成framework给第三方使用,第三方如果在podfile文件里面也导入了SDAutolayout 会失效

appleUserName commented 5 years ago

你好,我也遇到了同样的问题,请问你的解决了吗???

xuguoyong commented 5 years ago

没有,我直接放弃了,看了源码,使用的是运行时,交换了系统方法,如果framework内部导入了一次,然后在宿主app再导入一次,在运行时的时候调用的顺序跟编译的顺序有关,导致界面布局错乱,这个问题在我看来,除了换一个库或者修改库的方式,否则很难或者没有办法解决。

发自我的 iPhone

在 2019年6月25日,13:35,appleUserName notifications@github.com 写道:

你好,我也遇到了同样的问题,请问你的解决了吗???

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.