简体   繁体   中英

ios filter options similar to the apple store (dropdown list)

I'm trying to figure out how to make a filter option similar to the apple store's filter options. The first thing that came to my mind are dropdownlists similar to websites. But it doesn't seem to have it on the objects options in xcode. Was wondering where should I start in order to make that kind of function.

It's similar to this

http://www.insightguides.com/docs/halo-asset-manager/images/apps/berlitz-cruise-2013-ipad-6.jpg

Unless you guys can recommend something else? Looking at this, it seems to me it's just a popover? If this is so, I am in need of 4 - 5 filters, does that mean I should create 4 - 5 viewcontrollers to popover? It seems like a lot of space is being used just for filters, not really sure how to dynamically generate it using just 1 viewcontroller.

Thoughts?

Assuming all your filters look the same but have different data then you could just have one FilterViewController and change its data source depending on the filter type.

And yes, that does look like a simple UIPopoverController.

So when you have to display a new popover create a FilterViewController and assign it the appropriate data source. You can use delegation to inform the parent class which filter was selected and use the data source to tell the filter view controller what data it should display to be filtered.

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