Declared in UIBarButtonItem+BFKit.h

Overview

This category adds some useful methods to UIBarButtonItem

Tasks

Instance Methods

initWithBarButtonFlexibleSpace

- (instancetype _Nonnull)initWithBarButtonFlexibleSpace
Discussion

Create an UIBarButtonItem with type setted to FlexibleSpace

Return Value

Returns the created UIBarButtonItem

Declared In

UIBarButtonItem+BFKit.h

initWithBarButtonSpaceType:width:

- (instancetype _Nonnull)initWithBarButtonSpaceType:(UIBarButtonSystemItem)spaceType width:(CGFloat)width
Discussion

Create an UIBarButtonItem with type setted to FlexibleSpace or FixedSpace

Parameters

spaceType

Must be FlexibleSpace or FixedSpace, otherwise a FlexibleSpace UIBarButtonItem will be created

width

To use only if space is setted to FixedSpace, and it will be the width of it

Return Value

Returns the created UIBarButtonItem

Declared In

UIBarButtonItem+BFKit.h