2010-12-03 97 views

回答

7

最簡單的方法是添加UISwitch作爲UITableViewCell的附件視圖。

UISwitch* aswitch = [[UISwitch alloc] initWithFrame:CGRectZero]; 
aswitch.on = YES; // or NO 
cell.accessoryView = aswitch; 
[aswitch release]; 
+0

不錯!實際上效果非常好,謝謝! – cgossain 2010-12-03 21:01:36

相關問題