我有与 SPM 一起安装的 SDK。它在 Xcode 13.2 上按预期工作,但在 Xcode 13.3 上我收到此错误。
import PackageDescription
let package = Package(
name: "AAA",
products: [
.library(
name: "AAA",
targets: ["AAA"]),
],
dependencies: [
],
targets: [
.binaryTarget(
name: "AAA",
path: "artifacts/BBB.xcframework"
),
.testTarget(
name: "AAATests",
dependencies: ["AAA"]),
]
Run Code Online (Sandbox Code Playgroud)
我想在我的家庭控制器中第二次获得许可,例如,我可以通过编程方式进行吗?
我的意思是我的用户在第一次禁用它,我不想让他另一个选项来获取通知.
我创建了一个新项目,启用了僵尸对象(编辑方案 - > 诊断)。我初始化了两个对象:ZombieTest 和 ZombieTest2(从 NSObject 继承)。运行应用程序后,我打开调试内存图,只有从 NSObject 继承的对象显示为 NSZombie。
这是连接到我的表视图的所有功能。为什么我无法删除行?
我也做在viewDidLoad
override func viewDidLoad() {
super.viewDidLoad()
self.myTableView.dataSource = self
self.myTableView.delegate = self
self.myTableView.reloadData()
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return arr.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = UITableViewCell(style: UITableViewCellStyle.subtitle, reuseIdentifier: "incTV")
cell.textLabel?.text = "X"
cell.detailTextLabel?.text = "Y"
return cell
}
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
myTableView.deleteRows(at: [indexPath], with: .fade)
arr.remove(at: (indexPath as NSIndexPath).row)
self.myTableView.reloadData() …Run Code Online (Sandbox Code Playgroud)