UIView+BadgeValue.h 215 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 #import <UIKit/UIKit.h> @interface UIView (BadgeValue) /** * @author Clarence * * 设置消息数,设置小于或等于0 、@"" 、nil 就隐藏 */ @property (nonatomic,copy)NSString *fl_badgeValue; @end