2014-04-01 92 views
1

我在容器中放置了一個tableview,並且tableview的最後一個可見行不可點擊。容器內的ios 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

你可以檢查你的uiviewcontroller的框架嗎? – streem

回答

1

您是否在容器上設置了clipsToBounds?

_purchaseInvoiceListTableContainer.clipsToBounds = YES; 
相關問題