UINavigationBar UINavigationItem UIBarButtonItem

UINavigationBar 主要用來設置導航欄的背景圖片atom


UINavigationItem 主要是做爲UIBarButtonItem的容器用來存放leftBarButtonItem spa

主要接口:3d

- (void)setLeftBarButtonItems:(nullable NSArray<UIBarButtonItem *> *)items animated:(BOOL)animated NS_AVAILABLE_IOS(5_0);orm

- (void)setRightBarButtonItems:(nullable NSArray<UIBarButtonItem *> *)items animated:(BOOL)animated NS_AVAILABLE_IOS(5_0);接口

- (void)setLeftBarButtonItem:(nullable UIBarButtonItem *)item animated:(BOOL)animated;圖片

- (void)setRightBarButtonItem:(nullable UIBarButtonItem *)item animated:(BOOL)animated;it

屬性:io

@property(nullable, nonatomic,strong) UIBarButtonItem *leftBarButtonItem;容器

@property(nullable, nonatomic,strong) UIBarButtonItem *rightBarButtonItem;im

相關文章
相關標籤/搜索