Inserting a QSection to QRootElement at runtime in QuickDialog iOS
I am building a form with QuickDialog library in iOS. Here it is possible to insert any QElement at an index into any QSection dynamically with this method
- (void)insertElement:(QElement *)element atIndex:(NSUInteger)index;
But I found no way to insert a QSection into my QRootElement at runtime. Is there any way I can do that ?
There are two ways to you do this:
You can either use the - (void)addSection:(QSection *)section; method on the QRootElement to add the section to the bottom of the root, or you can insert the item directly in the sections mutable array property of the rootElement.
We should probably add a insertSection:atIndex: method for consistency, but it doesn't exist today.