简体   繁体   English

iOS 7-通过UITableView的UIPickerView

[英]iOS 7 - UIPickerView over UITableView

I can't find anything else on the internet about this specific topic. 我在互联网上找不到关于此特定主题的任何其他内容。 Everyone else wants to know how to do inline UIPickerView, but there is nothing on just having a UIPickerView appear over a table. 其他人都想知道如何内联UIPickerView,但是仅使UIPickerView出现在表上并没有什么。

I have a TableView with a bunch of populated cells. 我有一个TableView,里面有一堆填充的单元格。 I also have a defunct button in the top left of the screen. 我在屏幕的左上方也有一个失效的按钮。 What I want is to be able to press the button, bring up a Picker and sort the TableView's cells based on what is selected. 我想要的是能够按下按钮,显示选择器并根据所选内容对TableView的单元格进行排序。

I've been looking around and trying for ages and I just can't find anything detailing a solution to my problem. 我一直在四处寻找并尝试了很长时间,但我找不到任何详细说明我的问题的解决方案。

I would try using ActionSheetPicker-3.0 我会尝试使用ActionSheetPicker-3.0

It makes it easy to present a UIPickerView over your current view without having to use a delegate as it uses callback blocks. 它很容易在当前视图上显示UIPickerView,而无需使用委托,因为它使用了回调块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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