[英]Making a collapsible tableview(dropdown function) using static tableview
您可以覆盖didSelecRowAtIndexPath以确定哪一行在做什么。
例如:
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
if indexPath.row == 0 {
print("row 0")
}
else {
print("other row")
}
}
希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.