Each time a WYPopoverConrtoller is init, the static theme var is re-configured.
But since there is also an observer on the _theme var, the observer is invoked for every changed theme property during the init, which results in performing the -updateThemeUI method about 20 times in a row.
I suggest creating an temp WYPopoverTheme object, and to save it to the static var after fully configured. This will invoke the observer only once.
Each time a WYPopoverConrtoller is init, the static theme var is re-configured. But since there is also an observer on the _theme var, the observer is invoked for every changed theme property during the init, which results in performing the -updateThemeUI method about 20 times in a row.
I suggest creating an temp WYPopoverTheme object, and to save it to the static var after fully configured. This will invoke the observer only once.
Thank you.