How to use auto layout in a UINavigationBar custom titleView
问题 In WWDC 2017 presentation 204 they say that you can use autolayout in the custom titleView. It happens around 7:53 They never show an example of how to do this. When I try, I get a zero sized view. In interface builder I create a UIView and add a UISearchBar and a UIButton as subsides kind of like this [seachBar]-[Button] It becomes zero width. Does anyone know how to use this new feature? 回答1: I'll be answering my own question. Essentially, auto layout works like you would expect. However,