37 lines
781 B
Objective-C
Executable File
37 lines
781 B
Objective-C
Executable File
//
|
|
// SPGonghuiJoinAlert.m
|
|
// SweetParty
|
|
//
|
|
// Created by bj_szd on 2022/6/29.
|
|
//
|
|
|
|
#import "SPGonghuiJoinAlert.h"
|
|
|
|
@interface SPGonghuiJoinAlert ()
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *containerView;
|
|
|
|
@end
|
|
|
|
@implementation SPGonghuiJoinAlert
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
|
|
self.containerView.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(ScreenWidth, 200) direction:FXGradientChangeDirectionVertical startColor:HEXCOLOR(0xDFFFF6) endColor:HEXCOLOR(0xFFFFFF)];
|
|
[self.confirmBtn styleGradiBlueColor];
|
|
}
|
|
|
|
- (IBAction)onConfirm:(id)sender {
|
|
if (self.onConfirmBlock) {
|
|
self.onConfirmBlock();
|
|
}
|
|
[self removeFromSuperview];
|
|
}
|
|
|
|
- (IBAction)onCancel:(id)sender {
|
|
[self removeFromSuperview];
|
|
}
|
|
|
|
@end
|