Skip to content

Commit a6c9b64

Browse files
committed
行高不一定就默认 44.0
1 parent a5a4b7a commit a6c9b64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Coding_iOS/Controllers/MeSetting/SettingPhoneViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ - (void)viewDidLoad {
6262
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
6363
return 3;
6464
}
65+
66+
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
67+
return 44.0;
68+
}
69+
6570
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
6671
NSString *identifier = (indexPath.row == 0? kCellIdentifier_Input_OnlyText_Cell_Phone:
6772
indexPath.row == 1? self.phoneCodeCellIdentifier:

0 commit comments

Comments
 (0)