开发者

pop up a window in xcode

开发者 https://www.devze.com 2023-01-16 11:29 出处:网络
i have a search bar in navigation bar now whenever user press on that i want to drop down a view having

i have a search bar in navigation bar now whenever user press on that i want to drop down a view having 2 text field and a cancel button , but i dont know how to do that

kindly s开发者_如何学Pythonuggest me

Thanks


You could try making your view controller implement the UISearchBarDelegate protocol and then implementing the searchBarShouldBeginEditing: method (by having it show your text fields + button, and returning NO).

The whole idea feels like a possible HIG violation, so proceed at your own risk if you're submitting to the App Store, as Apple could reject your app for behaving in a particularly non-standard way.

0

精彩评论

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

关注公众号