繁体   English   中英

Swift:在cellForRowAtIndexPath中切换表格视图单元格

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM