iOS中沒有類似checkbox的控件,所以自己寫了個.
剛開始思路是跳轉(zhuǎn)到一個tableviewController,選擇后返回結(jié)果.然后發(fā)現(xiàn)不太友好,
于是嘗試在alertcontroller上加載一個tableview,最終結(jié)果如下:

iOS多選
源碼奉上:https://github.com/Liangjianghao/checkboxButton
iOS中沒有類似checkbox的控件,所以自己寫了個.
剛開始思路是跳轉(zhuǎn)到一個tableviewController,選擇后返回結(jié)果.然后發(fā)現(xiàn)不太友好,
于是嘗試在alertcontroller上加載一個tableview,最終結(jié)果如下:
源碼奉上:https://github.com/Liangjianghao/checkboxButton