开发者

UINavigationController title pressed

I want to know if there any开发者_如何学JAVA option to know if the user has clicked on the UINavigationController title. I mean, if there is a navigation controller and its titled "Hello", I want to do something if the user has pressed on the "Hello".

Thanks!


You can use UIGestureRecognizer for this. More specifically UITapGestureRecognizer.

Just add it to the UINavigationBar on the UINavigationController.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜