[英]How to call pickerView: didSelectRow: inComponent: without user interaction?
[英]UITableViewCell and UITextField with user interaction disabled doesn't call didSelectRow
我的單元格有一個UITextField
(綁定到所有邊緣),其中isUserInteractionEnabled
為false。 所以我希望當我單擊單元格時, didSelectRowAt
被調用。
Nowm這永遠不會發生。 它不調用didSelectRowAt
函數。
有什么辦法找出誰在消耗我的活動? 同樣在視圖調試器中,我沒有在其上面看到任何視圖。
最后,嘗試使用
textfield.isEnable = false而不是textfield.isUserInteractionEnable = false
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.