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.
我正在使用titlesForSpecifier 功能将标题动态输入IASK。当另一个设置更改时,我的标题数组需要刷新。
例如,如果用户更改国家代码,则需要刷新选择的州代码列表。
有任何想法吗?
阅读代码应该可以将multipleValues说明符的属性重置为nil. 这应该会触发重新加载代表的标题。现在要UITableView刷新单元格,请使用reloadData或reloadRows(at:with:)。
multipleValues
nil
UITableView
reloadData
reloadRows(at:with:)