修复重复显示的提示文本。

This commit is contained in:
Fin 2024-04-01 17:14:04 +08:00
parent cf32d33d3e
commit 60fce59253

View File

@ -102,6 +102,9 @@ extension SoundsViewController: UITableViewDelegate {
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
guard section == 0 else {
return 0
}
return NSLocalizedString("uploadSoundNoticeFullText").count <= 30 ? 50 : 60
}
@ -124,6 +127,9 @@ extension SoundsViewController: UITableViewDelegate {
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
guard section == 0 else {
return nil
}
let view = UIView()
let fullText = NSLocalizedString("uploadSoundNoticeFullText")