我在一个容器中放了一个tableview,并且tableview的最后一个可见行是不可点击的。
_purchaseInvoiceListTable
- tableViewController
[_purchaseInvoiceListTable setDataSource:_purchaseDataSource];
[_purchaseInvoiceListTable.view setFrame:_purchaseInvoiceListTableContainer.bounds];
[_purchaseInvoiceListTableContainer addSubview:[_purchaseInvoiceListTable view]];
[_purchaseInvoiceListTable willMoveToParentViewController:self];
[self addChildViewController:_purchaseInvoiceListTable];
[_purchaseInvoiceListTable didMoveToParentViewController:self];
为什么?
答案 0 :(得分:1)
你是否在容器上设置了clipsToBounds?
_purchaseInvoiceListTableContainer.clipsToBounds = YES;