Files
real-e-party-iOS/YuMi/YuMi-Bridging-Header.h
edwinQQQ 03e656f209 修复 Swift 方法重载冲突
问题:
- refreshTabBar(isLogin:) 和 refreshTabBarWithIsLogin(_:)
- 在 OC 中生成相同的 selector 'refreshTabBarWithIsLogin:'
- 导致编译冲突

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

这样 OC 只能看到 refreshTabBarWithIsLogin: 方法
Swift 内部可以使用更简洁的 refreshTabBar(isLogin:) 方法
2025-10-10 14:22:00 +08:00

30 lines
768 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// YuMi-Bridging-Header.h
// YuMi
//
// Created by AI on 2025-10-09.
// Copyright © 2025 YuMi. All rights reserved.
//
// Swift/OC 混编桥接头文件
#ifndef YuMi_Bridging_Header_h
#define YuMi_Bridging_Header_h
// MARK: - Minimal Bridging Header
// 只引入 Swift 中真正需要用到的 OC 类
// MARK: - Foundation
#import <UIKit/UIKit.h>
// MARK: - New Modules (White Label)
#import "GlobalEventManager.h"
#import "EPMomentViewController.h"
#import "EPMineViewController.h"
// 注意:
// 1. EPMomentViewController 和 EPMineViewController 直接继承 UIViewController
// 2. 不继承 BaseViewController避免 ClientConfig → PIBaseModel 依赖链)
// 3. 其他依赖在各自的 .m 文件中 import
#endif /* YuMi_Bridging_Header_h */