简体   繁体   中英

pop up a window in xcode

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 suggest 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM