簡體   English   中英

UIViewController中的下拉列表

[英]Drop Down list in a UIViewController

我對大家有一個問題。 iOS中是否有下拉列表的概念?意味着如果我單擊箭頭,就會出現一個下拉列表。我知道日期選擇器和選擇器視圖的概念。 還有其他解決方案嗎?

沒有,iOS中沒有任何下拉列表概念,您可以為此使用Some Custom Library。

您可以在Cocoacontrols.com上找到一些圖書館。

檢查此NIDropDownSAMenuDropDown

或用UITableview創建自己的,

試試看

1) Add the UITableView on a transparent UIView. 
2) The UIView should have the same size as the display screen.
3) The UITableView shall take the same small size you have.
4) Implement the touches method as you mentioned for the holding UIView.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM