如何UITableViewCell
在表格视图中使用s 内的自动布局,让每个单元格的内容和子视图确定行高(本身/自动),同时保持平滑的滚动性能?
我想设置一个switch语句来检查一个值if NSIndexPath
.NSIndexPath
是一个类,它包括(和其他)的section和row(indexPath.row, indexPath.section
)
这就是我如何制定一个if语句来同时检查一行和一个部分:
if indexPath.section==0 && indexPath.row == 0{
//do work
}
Run Code Online (Sandbox Code Playgroud)
什么是swift开关翻译呢?