GHBadge
给UIView和UITabBarController的tabBarItem增加角标
Install / Use
/learn @shabake/GHBadgeREADME
GHBadge
给UIView和UITabBarController的tabBarItem增加角标
先看效果

API
给View增加角标
/// 给view增加角标
/// @param object 要增加的目标view
/// @param pointWidth 角标的宽度
- (void)addPointWithObject:(UIView *)object pointWidth:(CGFloat)pointWidth;
当无法获取到目标View的时候使用以下方法
/// 在场景中如何无法获得目标object的frame用此方法
/// 给view增加角标
/// @param object 要增加的目标view
/// @param pointWidth 角标的宽度
/// @param width object的宽度
- (void)addPointWithObject:(UIView *)object pointWidth:(CGFloat)pointWidth width:(CGFloat)width;
移除目标View的角标
/// 给view移除角标
/// @param object 要增加的目标view
- (void)removePointWithObject:(UIView *)object;
给TabBarItem增加角标
/// 给TabBarItem增加角标
/// @param tabVc 要增加的目标tabBarController
/// @param pointWidth 角标的宽度
- (void)addPointWithTabVc:(UITabBarController *)tabVc pointWidth:(CGFloat)pointWidth;
TabBarItem移除角标
/// 给TabBarItem移除角标
/// @param tabVc 要增加的目标tabBarController
- (void)removePointWithTabVc:(UITabBarController *)tabVc;
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
