且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Objective-C类别导致无法识别的选择器

更新时间:2022-12-10 14:50:10

几种可能性:


  1. 您没有将 UIImage + TTShare.m 链接到您的目标中。

  2. 如果这是静态库的一部分,则需要添加 -all_load 其他链接器标记构建设置,用于与图书馆关联的应用。

  1. You did not link UIImage+TTShare.m into your target. So while you have the header, you're not compiling the implementation.
  2. If this is part of a static library, you need to add -all_load to the Other Linker Flags build setting for the app linking against the library.