Skip to content

Commit

Permalink
修复重复显示的提示文本。
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Apr 1, 2024
1 parent cf32d33 commit 60fce59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Controller/SoundsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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")
Expand Down

0 comments on commit 60fce59

Please sign in to comment.