我想绑定这个对象控件,但这是第一次,我有一些问题你能帮我吗?我对“简单”的属性和空隙没有任何问题,但另一个我不知道该怎么做谢谢克里斯
这是一个 .h 文件
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, KGModalBackgroundDisplayStyle){
KGModalBackgroundDisplayStyleGradient,
KGModalBackgroundDisplayStyleSolid
};
@interface KGModal : NSObject
@property (nonatomic) BOOL tapOutsideToDismiss;
@property (strong, nonatomic) UIColor *modalBackgroundColor;
@property (nonatomic) KGModalBackgroundDisplayStyle backgroundDisplayStyle;
+ (instancetype)sharedInstance;
- (void)showWithContentView:(UIView *)contentView;
- (void)showWithContentView:(UIView *)contentView andAnimated:(BOOL)animated;
- (void)showWithContentViewController:(UIViewController *)contentViewController;
- (void)showWithContentViewController:(UIViewController *)contentViewController andAnimated:(BOOL)animated;
- (void)hideWithCompletionBlock:(void(^)())completion;
- (void)hideAnimated:(BOOL)animated withCompletionBlock:(void(^)())completion;
@end