0

我想绑定这个对象控件,但这是第一次,我有一些问题你能帮我吗?我对“简单”的属性和空隙没有任何问题,但另一个我不知道该怎么做谢谢克里斯

这是一个 .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
4

1 回答 1

0

有两个选项可以进行绑定:

代码看起来相对简单,因此您可能Objective Sharpie无需额外修补即可使用生成的绑定。

于 2013-06-12T09:39:56.077 回答