How to set category title for dynamic options in widgetkit

I tried to categorize the dynamic options in WidgetKit and provide a title for each category, but failed.

I noticed that in the weather application that comes with the system, his dynamic option has a gray and unselectable title at the top.

How can I create category titles for dynamic options?

Or can I disable the response of some select buttons?

My current approach is to add spaces to the display field of my dynamic option to achieve this visually, but this will cause the title to be selected as well.

Let me know there is a better solution, thanks

Accepted Answer

I found that I made a mistake, just use INObjectCollection and INObjectSection to complete

How to set category title for dynamic options in widgetkit
 
 
Q