This commit is contained in:
Yao
2024-12-20 17:49:45 +08:00
parent 86b0363ce1
commit 654d456c7d
7011 changed files with 1705926 additions and 7 deletions

View File

@@ -0,0 +1,43 @@
//
// DSWebDragView.m
// VietnamGame
//
//
#import "DSWebDragView.h"
@implementation DSWebDragView
-(void)awakeFromNib
{
[super awakeFromNib];
self.userInteractionEnabled = YES;
self.backgroundColor = [UIColor clearColor];
self.homeImageView = [[UIImageView alloc] initWithFrame:self.bounds];
self.homeImageView.image = [UIImage imageNamed:@"menu"];
self.homeImageView.backgroundColor = [UIColor whiteColor];
self.homeImageView.layer.cornerRadius = 30.f;
self.homeImageView.layer.masksToBounds = YES;
[self addSubview:self.homeImageView];
}
-(instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
self.userInteractionEnabled = YES;
self.backgroundColor = [UIColor clearColor];
self.homeImageView = [[UIImageView alloc] initWithFrame:self.bounds];
self.homeImageView.image = [UIImage imageNamed:@"menu"];
self.homeImageView.backgroundColor = [UIColor whiteColor];
self.homeImageView.layer.cornerRadius = 30.f;
self.homeImageView.layer.masksToBounds = YES;
[self addSubview:self.homeImageView];
}
return self;
}
@end