Make the navigationbar title clickable swift
问题 I would like to make the navigationbar title to be clickable. When user click on it, it should perform a segue. But I have no idea how to do this. I have tried the following to get the title and apply the Tap gesture to it. var subviews = self.navigationController?.navigationBar.subviews if let subviews = subviews { // Better check for array length before accessing to the 1st element var subview = subviews [0] } but its giving me error Variable subview inferred to have type AvyObject, which