Skip to content

Commit

Permalink
feat(Examples): update example home cell height
Browse files Browse the repository at this point in the history
  • Loading branch information
HeathWang committed Sep 10, 2019
1 parent 87a3d42 commit f4d86f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Demo/HWViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ - (UITableView *)tableView {
if (!_tableView) {
_tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
[_tableView registerClass:UITableViewCell.class forCellReuseIdentifier:NSStringFromClass(UITableViewCell.class)];
_tableView.rowHeight = 60;
_tableView.rowHeight = 44;
_tableView.estimatedRowHeight = 0;
_tableView.estimatedSectionHeaderHeight = 0;
_tableView.estimatedSectionFooterHeight = 0;
Expand Down
4 changes: 2 additions & 2 deletions Sources/Controller/HWPanModalPresentationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ - (void)cancelInteractiveTransition {
#pragma mark - UIGestureRecognizerDelegate

/**
* 只有当其他的UIGestureRecognizer为pan recognizer时才能同时存在
* ONLY When otherGestureRecognizer is panGestureRecognizer, and target gestureRecognizer is panGestureRecognizer, return YES.
*/
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
if ([gestureRecognizer isKindOfClass:UIPanGestureRecognizer.class]) {
Expand All @@ -780,7 +780,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
}

/**
* 当当前手势为screenGestureRecognizer时,其他pan recognizer都应该fail
* 当前手势为screenGestureRecognizer时,其他pan recognizer都应该fail
*/
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
if (gestureRecognizer == self.screenGestureRecognizer && [otherGestureRecognizer isKindOfClass:UIPanGestureRecognizer.class]) {
Expand Down
2 changes: 1 addition & 1 deletion SwiftDemo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ViewController: UIViewController {

lazy var tableView: UITableView = {
let tableView = UITableView(frame: .zero, style: .grouped)
tableView.rowHeight = 60
tableView.rowHeight = 44
tableView.estimatedRowHeight = 0
tableView.estimatedSectionHeaderHeight = 0
tableView.estimatedSectionFooterHeight = 0
Expand Down

0 comments on commit f4d86f6

Please sign in to comment.