2014-01-10 28 views
1

我有一個問題給大家。是否有任何iOS下拉列表的概念?意思是如果我點擊箭頭,然後下拉列表將出來。我知道日期選擇器和選擇器視圖的概念。有沒有其他解決方案..?在UIViewController中下拉列表

回答

2

不,沒有任何下拉列表iOS中的概念,您可以使用一些自定義庫。

您可以在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. 
+0

謝謝..你能告訴我一些代碼..? –

+0

@ Rupayan_90:檢查https://github.com/BijeshNair/NIDropDown/archive/master.zip下載項目,使用 –

+0

非常感謝。它是一個很好的例子 –