自定義cell中自定義的button的點擊事件

1 當自定義cell中有控件button時,因爲系統cell的點擊事件的優先級高於button的點擊事件的優先級,所以,點擊button時,button的點擊事件不會出現。要想使button的點擊事件可用,可使用[self bringSubviewToFront:_deleleBtn]; 即bringSubviewToFront使button的優先級提升,從而可使button的點擊事件實現。spa

相關文章
相關標籤/搜索