我想绑定这个对象控件,但这是第一次,我有一些问题 你能帮助我吗? 我没有问题的属性和空洞“简单”,但另一个我不知道该怎么做 谢谢 克里斯
这是一个.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
答案 0 :(得分:0)
有两种方法可以进行绑定:
Objective Sharpie
用于automatically binding generation。代码看起来相对简单,因此您可以使用Objective Sharpie
生成的绑定而无需额外修补它。