看板 MacDev 關於我們 聯絡資訊
前輩們好:: 因專案想將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
rollr: 明天幫你看看 06/04 01:16