
问题: - refreshTabBar(isLogin:) 和 refreshTabBarWithIsLogin(_:) - 在 OC 中生成相同的 selector 'refreshTabBarWithIsLogin:' - 导致编译冲突 修复: - 移除 refreshTabBar(isLogin:) 的 @objc 标记 - 保留 refreshTabBarWithIsLogin(_:) 的 @objc 标记 - 内部调用改为 Swift 方法 这样 OC 只能看到 refreshTabBarWithIsLogin: 方法 Swift 内部可以使用更简洁的 refreshTabBar(isLogin:) 方法
26 lines
481 B
Objective-C
26 lines
481 B
Objective-C
//
|
||
// NewMomentCell.h
|
||
// YuMi
|
||
//
|
||
// Created by AI on 2025-10-09.
|
||
// Copyright © 2025 YuMi. All rights reserved.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
|
||
@class MomentsInfoModel;
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
/// 新的动态 Cell(卡片式设计)
|
||
/// 完全不同于原 XPMomentsCell 的列表式设计
|
||
@interface EPMomentCell : UITableViewCell
|
||
|
||
/// 配置 Cell 数据
|
||
/// @param model 动态数据模型
|
||
- (void)configureWithModel:(MomentsInfoModel *)model;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|