IOS之AutoLayout框架的使用
#import "UIView+AutoLayout.h"
[citySearchResultController.view autoPinEdge:ALEdgeTop toEdge:ALEdgeTop ofView:self.tableView withOffset:50];
[citySearchResultController.view autoPinEdge:ALEdgeLeft toEdge:ALEdgeLeft ofView:self.tableView];
[citySearchResultController.view autoPinEdge:ALEdgeRight toEdge:ALEdgeRight ofView:self.tableView];
[citySearchResultController.view autoPinEdge:ALEdgeBottom toEdge:ALEdgeBottom ofView:self.tableView];
[citySearchResultController.view autoPinEdgesToSuperviewEdgesWithInsets:UIEdgeInsetsZero excludingEdge:ALEdgeTop];
[citySearchResultController.view autoPinEdge:ALEdgeTop toEdge:ALEdgeTop ofView:self.tableView];
https://gitee.com/johnson__save_admin/iosauto-layout