ZJSwiftRadio
基于swift實(shí)現(xiàn)單選按鈕蜈出,能實(shí)現(xiàn)多個(gè)選項(xiàng)的自動(dòng)高度田弥。
let zjr = ZJRadio.init(frame: CGRectMake(0, 64, 320, 20), arr: ["男性", "女性", "第三人", "亞洲", "非洲", "歐洲", "澳洲"], isAutoHeight: true) { (cur) -> (Void) in
NSLog("當(dāng)前點(diǎn)擊:%d", cur)
}
self.view.addSubview(zjr)
let zjr1 = ZJRadio.init(frame: CGRectMake(0, 200, 320, 20), arr: ["男性", "女性", "第三人", "亞洲", "非洲", "歐洲", "澳洲"], isAutoHeight: false) { (cur) -> (Void) in
NSLog("當(dāng)前點(diǎn)擊1:%d", cur)
}
self.view.addSubview(zjr1)
zjSwiftRadio_Demo for github