gpt4 book ai didi

ios - 在运行时在 QuickDialog iOS 中将 QSection 插入到 QRootElement

转载 作者:行者123 更新时间:2023-11-29 03:06:18 26 4
gpt4 key购买 nike

我正在用 QuickDialog 构建一个表单iOS 中的库。这里可以使用此方法将索引处的任何 QElement 动态插入到任何 QSection

- (void)insertElement:(QElement *)element atIndex:(NSUInteger)index; 

但我发现无法在运行时将 QSection 插入到我的 QRootElement 中。有什么办法可以做到吗?

最佳答案

有两种方法可以做到这一点:

您可以使用 QRootElement 上的 - (void)addSection:(QSection *)section; 方法将该部分添加到根的底部,也可以直接将该项目插入rootElement 的 sections 可变数组属性。

我们可能应该添加一个 insertSection:atIndex: 方法来保持一致性,但它现在不存在。

关于ios - 在运行时在 QuickDialog iOS 中将 QSection 插入到 QRootElement,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22739922/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com