Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有人知道如何在 textview 上保存加载字体。该应用程序允许用户为文本视图选择字体,但是当他们切换视图并返回时,它就消失了。有谁知道如何保存然后加载它。非常感谢。
另外,如果有人知道如何保存文本颜色,那也很棒。
非常感谢!!
您需要做的是为所有 textViews 提供特定的标记值,并且在 view willDisappear 之前导航时,您必须将所有值存储到数组中,并在导航回 viewWillAppear 上的视图时使用标记值填充所有 textViews。