[英]Swift : Switching tableview cells in cellForRowAtIndexPath
How to switch btw cells in cellForRowAtIndexPath ? 如何在cellForRowAtIndexPath中切换btw单元格?
Do I have to create a var index = indexpath.row
? 我必须创建一个
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.