2011-10-11 77 views
0

我這樣做: 首先創建基於導航的應用程序。 然後從rootViewController.xib中刪除UITableView,添加一個UIView將它連接到文件的所有者。 在RootViewcontroller.m基於導航的應用程序沒有uitableview錯誤

RootViewcontroller.h 最後清潔UITableView所有方法更改UITableViewUIViewController但是當我運行該項目收到此錯誤:

-[RootViewcontroller tableView:numberOfRowsInSection:]:unreconized selector sent to instance 

我在做什麼錯?

回答

1

有幾種可能性。

  1. 確保在頭文件中實現了UITableView協議。 如@interface TestingViewController : UIViewController <UITableViewDelegate, UITableViewDataSource>

  2. 檢查你從界面生成器連接,並確保它的正確鏈接

相關問題