2015-10-15 30 views
1

我有一個UITextView與userInteraction = YESselectable = YES,我可以集中它(我已檢查與​​重點),但我不能編輯它,因爲鍵盤從不出現。tvOS UITextView - 如何編輯

我也嘗試設置委託方法,但textFieldShouldBeginEditing永遠不會被調用。

editable屬性在代碼中不可用。

我錯過了什麼嗎? Textview是否可編輯?

回答

0

如果您使用模擬器,請確保您沒有設置爲僅使用硬件鍵盤。

硬件 - >鍵盤 - >嘗試兩種切換

+0

我有同樣的問題都使用模擬器和實際設備。無論如何,tks。 – Fab

0

我不得不做類似的東西UITextView拿到鍵盤顯示:

UITextField* postField = [[UITextField alloc] init]; 
postField.delegate = self; 
postField.keyboardType = UIKeyboardTypeTwitter; 
[self addSubview:postField]; 
//Show Keyboard for input 
[postField becomeFirstResponder];