Commit 30628668 authored by pete谢兆麟's avatar pete谢兆麟

适配机型

parent 27b7b0c8
...@@ -61,7 +61,7 @@ extension YHDetailViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -61,7 +61,7 @@ extension YHDetailViewController: UITableViewDelegate, UITableViewDataSource {
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 243 return 243.fix
} }
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
......
...@@ -32,7 +32,7 @@ extension YHListViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -32,7 +32,7 @@ extension YHListViewController: UITableViewDelegate, UITableViewDataSource {
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 204 return 204.fix
} }
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment