Skip to content

Commit

Permalink
fix: tableView was created twice
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Nov 30, 2024
1 parent 694b01c commit ec63e91
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ - (instancetype)init {
- (instancetype)initWithWindowType:(EZWindowType)type {
if (self = [super init]) {
self.windowType = type;
[self setupUI];
[self setupData];
[self updateWindowHeight];
}
return self;
}
Expand All @@ -122,8 +124,6 @@ - (void)loadView {

- (void)viewDidLoad {
[super viewDidLoad];

[self setupUI];
}

- (void)viewWillAppear {
Expand All @@ -147,8 +147,6 @@ - (void)setupData {
- (void)setupUI {
[self tableView];

[self updateWindowHeight];

mm_weakify(self);
[self setResizeWindowBlock:^{
mm_strongify(self);
Expand Down

0 comments on commit ec63e91

Please sign in to comment.