修复 Swift 方法重载冲突

问题:
- refreshTabBar(isLogin:) 和 refreshTabBarWithIsLogin(_:)
- 在 OC 中生成相同的 selector 'refreshTabBarWithIsLogin:'
- 导致编译冲突

修复:
- 移除 refreshTabBar(isLogin:) 的 @objc 标记
- 保留 refreshTabBarWithIsLogin(_:) 的 @objc 标记
- 内部调用改为 Swift 方法

这样 OC 只能看到 refreshTabBarWithIsLogin: 方法
Swift 内部可以使用更简洁的 refreshTabBar(isLogin:) 方法
This commit is contained in:
edwinQQQ
2025-10-10 14:22:00 +08:00
parent a684c7e4f7
commit 03e656f209
11 changed files with 66 additions and 66 deletions

View File

@@ -22,7 +22,7 @@
#import "EPMineViewController.h"
// 注意:
// 1. NewMomentViewController 和 NewMineViewController 直接继承 UIViewController
// 1. EPMomentViewController 和 EPMineViewController 直接继承 UIViewController
// 2. 不继承 BaseViewController避免 ClientConfig → PIBaseModel 依赖链)
// 3. 其他依赖在各自的 .m 文件中 import