iOS 导航条添加按钮
https://gitee.com/Shijingfu/ios_button.git
@interface SJFUIBarButtonItem : UIBarButtonItem
@property(nonatomic, strong) UILabel *titleText;
@property(nonatomic, strong) UIButton *button;
//初始化包含图片的
- (SJFUIBarButtonItem *)initWithLeftBarButton:(NSString *)titletarget:(id)targetaction:(SEL)method;
//初始化包含图片的UIBarButtonItem
- (SJFUIBarButtonItem *)initContainImage:(UIImage *)buttonImage
imageViewFrame:(CGRect)imageFrame
buttonTitle:(NSString *)buttonTitle
titleColor:(UIColor *)titleColor
titleFrame:(CGRect)titleFrame
buttonFrame:(CGRect)buttonFrame
target:(id)target
action:(SEL)method;
//红点要不要
- (SJFUIBarButtonItem *)initWithbuttonTitle:(NSString *)buttonTitle
titleColor:(UIColor *)titleColor
buttonFrame:(CGRect)buttonFrame
target:(id)target
action:(SEL)method
addhong:(BOOL)isbool;
//初始化不包含图片的UIBarButtonItem
- (SJFUIBarButtonItem *)initWithbuttonTitle:(NSString *)buttonTitle
titleColor:(UIColor *)titleColor
buttonFrame:(CGRect)buttonFrame
target:(id)target
action:(SEL)method;
//设置UIBarButtonItem是否可以被点击和对应的颜色
- (void)buttonIsCanClick:(BOOL)isCanClick
buttonColor:(UIColor *)buttonColor
barButtonItem:(SJFUIBarButtonItem *)barButtonItem;
//平移UIBarButtonItem
- (NSArray *)setTranslation:(UIBarButtonItem *)barButtonItemtranslation:(CGFloat)translation;
@end
NS_ASSUME_NONNULL_END