UITabBarItem(FWBadge)
@interface UITabBarItem (FWBadge)
/// 获取一个UITabBarItem内显示图标的UIImageView,如果找不到则返回nil
@property (nullable, nonatomic, weak, readonly) UIImageView *fw_imageView NS_REFINED_FOR_SWIFT;
/// 显示右上角提醒灯,上右偏移指定距离
- (void)fw_showBadgeView:(FWBadgeView *)badgeView badgeValue:(nullable NSString *)badgeValue NS_REFINED_FOR_SWIFT;
/// 隐藏提醒灯
- (void)fw_hideBadgeView NS_REFINED_FOR_SWIFT;
@end
Undocumented
-
获取一个UITabBarItem内显示图标的UIImageView,如果找不到则返回nil
Declaration
Objective-C
@property (nonatomic, weak, readonly, nullable) UIImageView *fw_imageView;
-
显示右上角提醒灯,上右偏移指定距离
Declaration
Objective-C
- (void)fw_showBadgeView:(nonnull FWBadgeView *)badgeView badgeValue:(nullable NSString *)badgeValue;
-
隐藏提醒灯
Declaration
Objective-C
- (void)fw_hideBadgeView;