How to make a textField as firstResponder in Swift iOS - UIKit

问题描述 投票:0回答:0

我已经在 UITextView 中有一个选择,没有禁用选择。我需要将 UITextField 作为 firstResponder 并在 UITextField 中输入文本。

但是当我在 UITextField 中输入文本时,UITextView 选择变为零。 (即禁用选定范围内的光标)

swift uikit uitextfield uitextview
© www.soinside.com 2019 - 2024. All rights reserved.