swift之数组 //过滤掉已经选中的cell,这里通过filter过滤掉的到一个新的数组,再把新的数组赋值给原来的数组,swift中没有现成的删除指定元素的方法 let filterArr = indexArr.filter { $0 != indexPath.item//数组中留下的元素都是不等于indexPath.item
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号