1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // LDTabbar.h
- // YouHuiProject
- //
- // Created by liuxueli on 2019/2/25.
- // Copyright © 2019 kuxuan. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSUInteger, MCTabBarCenterButtonPosition){
- MCTabBarCenterButtonPositionCenter, // 居中
- MCTabBarCenterButtonPositionBulge // 凸出一半
- };
- @class LDTabbar;
- @interface LDTabbar : UITabBar
- /**
- 中间按钮
- */
- @property (nonatomic, strong) UIButton *centerBtn;
- /**
- 中间按钮图片
- */
- @property (nonatomic, strong) UIImage *centerImage;
- /**
- 中间按钮选中图片
- */
- @property (nonatomic, strong) UIImage *centerSelectedImage;
- /**
- 中间按钮偏移量,两种可选,也可以使用centerOffsetY 自定义
- */
- @property (nonatomic, assign) MCTabBarCenterButtonPosition position;
- /**
- 中间按钮偏移量,默认是居中
- */
- @property (nonatomic, assign) CGFloat centerOffsetY;
- /**
- 中间按钮的宽和高,默认使用图片宽高
- */
- @property (nonatomic, assign) CGFloat centerWidth, centerHeight;
- @end
|