3.11 iOS 控件 - Text Field 文本輸入框


An iOS text field that uses an Android phone or tablet's native keyboard when running on device.When no device is connected, use the Fake Keyboard.Use the Touch button on the component to get information about the text and editing status.
通過設備的鍵盤輸入字符的輸入框。沒有設備時使用 Fake Keyboard 模擬鍵盤。使用圖層的 Touch 按鈕可獲取有關文本和編輯狀態的信息。

Enable 啟用
A boolean that is true when the text field is displayed.
勾選后啟用。

Position 位置
The position to display the text field.
輸入框位置。

Anchor 錨點
The anchor point to position the layer relative to. See Coordinates for more information.
位于屏幕中的錨點,詳細信息閱讀Coordinates 坐標

Size 尺寸
The size of the text field.
輸入框的尺寸。

Text 字符
A text string to change the text field to. Use Set Text to change the text.
默認顯示的文字。使用 Set Text 屬性接口更改字符。

Begin Editing 開始編輯
A pulse that focuses the text field and shows the keyboard if on an iPhone or iPad.
一個交互連接到此接口,選中輸入框并顯示鍵盤。

End Editing 結束編輯
A pulse that unfocuses the text field and hides the keyboard if on an iPhone or iPad.
一個交互連接到此接口,輸入框失焦并隱藏鍵盤。

Tint Color 顏色
The color of the cursor.
編輯時光標的顏色。

Color 顏色
The color of the text.
字符的顏色。

Font Name 字體名稱
The font name of the text.

Font Size 文字尺寸
The font size of the text.

Set Text 設置字符
A pulse that changes the text using the Text input.
使用 Text Input Info 模塊更改文本。

Placeholder 占位符
The placeholder text when no text is entered in the field.
沒有字符輸入時的占位文本。

Show Clear Button 顯示清除按鈕
The behavior of displaying the clear button: always, unless editing, while editing, none
顯示清除輸入框字符的按鈕:一直顯示、編輯時顯示、未編輯時顯示、不顯示。

Keyboard Type 鍵盤類型
The type of keyboard to use on an iPhone or iPad.
鍵盤類型。

Placeholder Color 占位符顏色
The color of the placeholder text.
占位字符的顏色。

Touch
這里不咋明白
Editing 發布
A boolean that is true when the text field is focused.
輸入框選中時布爾值為真。

Text 文字
The current text string in the text field.
文本字段中的當前文本字符串。

Enter Pressed 按下輸入
A pulse that represents when the return key is pressed.
表示按下返回鍵時的脈沖。

全部圖層,查看 圖層目錄


Related Patches 相關模塊

Text Input Info


Related Layers 相關圖層

Action Sheet 操作表Activity Indicator 加載菊花Alert View 警告彈窗Fake Keyboard 模擬鍵盤Page Control 翻頁小點Screen 滑屏Slider 滑塊Status Bar 狀態欄Switch 開關Tab Bar 標簽欄Visual Effect 毛玻璃效果


最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容