Simply check whether the flag indicating a change in font status has changed and then create the corresponding UITextField at that time.
检查表明字体状态变更的标记是否改变,然后创建一个对应的UITextField。
When you change a font, you can create a new UITextField at the same time. Or, you can store the new font context and a flag indicating that fonts have changed.
在更改字体时,您可以同时创建一个新的UITextField,或者存储一个新的字体上下文和一个表明字体已经更改的标记。
This overridden method illustrates how, if the flag is marked true, the real UITextField (textField) is updated, and the flag is reset to false for future markings.
这个被覆盖的方法演示了当标记被设置为true时,如何更新uitextfield (textField),以及如何将该标记重新设置为false以在未来进行标记。
This overridden method illustrates how, if the flag is marked true, the real UITextField (textField) is updated, and the flag is reset to false for future markings.
这个被覆盖的方法演示了当标记被设置为true时,如何更新uitextfield (textField),以及如何将该标记重新设置为false以在未来进行标记。
应用推荐