我们如何快速在tableview的底部添加展开和折叠单元格

问题描述

我不知道如何在 swift 中的 tableview 底部添加展开和折叠单元格。因为我在它上面加载了一些数据。 header 和 Child [Expand and collapes] 数据将基于 json 响应。

解决方法

$username = "domainname\administrator"
$pw = "XXXXXXXX"
$password = $pw | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential -ArgumentList $username,$password
Start-Process Powershell.exe -Credential $cred  -ArgumentList '-noexit','-File',' C:\Users\Administrator\test.ps1'

Below is the error I am getting. 
 Start-Process : This command cannot be run due to the error: Access is denied.

在 HeaderView 上添加按钮并设置部分的按钮标签。当在重新加载 tableview 之前单击按钮重新加载 tableview 存储 selectionValue 时。