![](/img/trans.png)
[英]tableView.cellForRowAtIndexPath returns nil with too many cells (swift)
[英]Swift : Switching tableview cells in cellForRowAtIndexPath
如何在cellForRowAtIndexPath中切换btw单元格?
我必须创建一个var index = indexpath.row
吗?
switch (IndexPath.row)
case 0:
///// add code here
case 1:
//////add code here
default:
//////add code here
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.