From ec3cd08784345202edfa901f7dcc23ee0dbcf10d Mon Sep 17 00:00:00 2001 From: Pin-Chih Lin Date: Wed, 30 Dec 2020 05:28:14 +0800 Subject: [PATCH] Fixed a syntax error on viewDidAppear function --- autolayout/selfsizing_uitableviewcell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autolayout/selfsizing_uitableviewcell.md b/autolayout/selfsizing_uitableviewcell.md index ad7b7f8..aca58ff 100644 --- a/autolayout/selfsizing_uitableviewcell.md +++ b/autolayout/selfsizing_uitableviewcell.md @@ -14,7 +14,7 @@ self.tableView.rowHeight = UITableViewAutomaticDimension; 最後再 `viewDidAppear:`中加入 `tableView.reloadData()` ``` objc -- (void)viewDidAppear(BOOL: animated) { +- (void)viewDidAppear:(BOOL)animated { [self.tableView reloadData]; } ```