Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Sep 22, 2023
1 parent ba78ef4 commit 26e5015
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions native/cocos/ui/edit-box/EditBox-ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,6 @@ @interface CustomUITextView: UITextView
@end

@implementation CustomUITextView
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
_canBecomeFirstResponderDynamically = YES;
}
return self;
}

- (BOOL)canBecomeFirstResponder {
return self.canBecomeFirstResponderDynamically;
}
Expand Down Expand Up @@ -259,14 +251,6 @@ @interface CustomUITextField: UITextField
@end

@implementation CustomUITextField
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
_canBecomeFirstResponderDynamically = YES;
}
return self;
}

- (BOOL)canBecomeFirstResponder {
return self.canBecomeFirstResponderDynamically;
}
Expand Down

0 comments on commit 26e5015

Please sign in to comment.