File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ - (void)viewDidLoad
8686 [tableView registerClass: [TaskCommentTopCell class ] forCellReuseIdentifier: kCellIdentifier_TaskCommentTop ];
8787 [tableView registerClass: [TaskDescriptionCell class ] forCellReuseIdentifier: kCellIdentifier_TaskDescription ];
8888 tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
89+ [tableView mas_makeConstraints: ^(MASConstraintMaker *make) {
90+ make.edges .equalTo (self.view );
91+ }];
8992 tableView;
9093 });
9194 [self .view addSubview: _myTableView];
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ - (void)viewDidLoad
5353 tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
5454 [tableView registerClass: [TitleValueCell class ] forCellReuseIdentifier: kCellIdentifier_TitleValue ];
5555 [self .view addSubview: tableView];
56+ [tableView mas_makeConstraints: ^(MASConstraintMaker *make) {
57+ make.edges .equalTo (self.view );
58+ }];
5659 tableView;
5760 });
5861 _myTableView.tableHeaderView = [self configHeaderView ];
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ - (void)loadView{
5050 tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
5151 [tableView registerClass: [MemberCell class ] forCellReuseIdentifier: kCellIdentifier_MemberCell ];
5252 [self .view addSubview: tableView];
53+ [tableView mas_makeConstraints: ^(MASConstraintMaker *make) {
54+ make.edges .equalTo (self.view );
55+ }];
5356 tableView;
5457 });
5558 _mySearchBar = ({
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ - (void)viewDidLoad
6464 [tableView registerClass: [TweetDetailCell class ] forCellReuseIdentifier: kCellIdentifier_TweetDetail ];
6565 [tableView registerClass: [TweetDetailCommentCell class ] forCellReuseIdentifier: kCellIdentifier_TweetDetailComment ];
6666 [self .view addSubview: tableView];
67+ [tableView mas_makeConstraints: ^(MASConstraintMaker *make) {
68+ make.edges .equalTo (self.view );
69+ }];
6770 tableView;
6871 });
6972 _refreshControl = [[ODRefreshControl alloc ] initInScrollView: self .myTableView];
You can’t perform that action at this time.
0 commit comments