作者hungwei0331 (Game)
看板MacDev
标题[问题] Navigation设置titleView为searchBar问题
时间Sat Jun 2 18:09:13 2018
前辈们好::
因专案想将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://webptt.com/cn.aspx?n=bbs/MacDev/M.1527934157.A.E4F.html
1F:推 rollr: 明天帮你看看 06/04 01:16