[問題] Navigation設置titleView為searchBar問題

看板MacDev作者 (Game)時間7年前 (2018/06/02 18:09), 編輯推噓1(100)
留言1則, 1人參與, 7年前最新討論串1/2 (看更多)
前輩們好:: 因專案想將searchBar放置於titleView, 但searchBar放完卻無法觸發searchBarDelegate, 目前有一個解法為使用以下func override func point(inside point: CGPoint, with event: UIEvent?) -> Bool, 加入上述程式碼可正常觸發searchBar, 但navigationBarItemButton卻又無法點擊 .. 想請問前輩們是否有推薦的解法能解決此問題, 附上demo source code, https://www.dropbox.com/s/z6z6ld6l2c8oaus/TitleViewTest.zip?dl=0 打擾了 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.193.209.114 ※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1527934157.A.E4F.html

06/04 01:16, 7年前 , 1F
明天幫你看看
06/04 01:16, 1F
文章代碼(AID): #1R4cpDvF (MacDev)
文章代碼(AID): #1R4cpDvF (MacDev)