1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // BasePickerViewController.h
- // LiveTV
- //
- // Created by 翟玉磊 on 2019/4/24.
- // Copyright © 2019 翟玉磊. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef void(^BasePickerSureActionBlock)(NSInteger index, id info);
- @interface BasePickerViewController : UIViewController
- @property (nonatomic, readwrite, strong) UIViewController *parentController;
- @property (nonatomic, readwrite, copy) NSString *titleText;
- @property (nonatomic, readwrite, copy) NSString *cancelText;
- @property (nonatomic, readwrite, copy) NSString *sureText;
- @property (nonatomic, readwrite, strong) UIColor *titleTextColor;
- @property (nonatomic, readwrite, strong) UIColor *cancelTextColor;
- @property (nonatomic, readwrite, strong) UIColor *sureTextColor;
- @property (nonatomic, readwrite, strong) UIFont *titleTextFont;
- @property (nonatomic, readwrite, strong) UIFont *cancelTextFont;
- @property (nonatomic, readwrite, strong) UIFont *sureTextFont;
- @property (nonatomic, readwrite, strong) UIColor *normaltextColor;
- @property (nonatomic, readwrite, strong) UIFont *normalTextFont;
- @property (nonatomic, readwrite, strong) UIColor *selectTextColor;
- @property (nonatomic, readwrite, strong) UIFont *selectTextFont;
- - (instancetype)initWithTitle:(NSString *)title dataArray:(NSArray *)dataArray target:(UIViewController *)target sureBlock:(void(^)(NSInteger index, id info))block;
- - (void)show;
- /// 显示到指定控制器上
- - (void)showWithController:(UIViewController *)controller;
- - (void)dismiss;
- /// 选择指定文本的item
- - (void)selectedItemWithText:(NSString *)text;
- @end
- NS_ASSUME_NONNULL_END
|