問候搜索後,我在我的代碼有一些奇怪的問題...
我的代碼是基於型號搜索(TTCatalog)three20例子。我成功地處理了didSelectObject:atIndexPath:當行在搜索前碰到,但這個事件甚至在找到某事物時不會觸發(例如,過濾2次結果爲30)。
我使用遠程數據,提取一次,然後就像在模型搜索。
在此先感謝。無法處理didSelectObject:atIndexPath:在TTTableViewController
1
A
回答
1
Got it!我剛剛作出了巨大的錯誤: 我用這個結構:
@implementation RegionSelectionViewController
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)loadView {
[super loadView];
TTTableViewController* searchController = [[[TTTableViewController alloc] init] autorelease];
searchController.dataSource = [[[RegionDataSource alloc] initWithDuration:1.5] autorelease];
self.searchViewController = searchController;
self.tableView.tableHeaderView = _searchController.searchBar;
}
,而不是這樣的:
@implementation RegionSelectionViewController
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)loadView {
[super loadView];
RegionSelectionViewController* searchController =
[[[RegionSelectionViewController alloc] init] autorelease];
searchController.delegate = _delegate;
self.searchViewController = searchController;
self.tableView.tableHeaderView = _searchController.searchBar;
}
現在,它的工作,因爲它應該!
看起來像有沒有選擇過載TTTableViewController的代表...
一個更多的時間,謝謝!
+0
非常感謝。這幫助了我。但是如果你不重載TTTableViewController的委託,你如何實現它?你能給我頭文件嗎? – Dimme 2012-01-04 13:08:46
+0
對不起m8,這是很久以前,我不在那裏工作=)並沒有觸及Three20約8個月... – niveuseverto 2012-01-19 08:36:03
相關問題
- 1. 無法處理PreviewMouseDown
- 2. 無法處理FaultException
- 3. 無法處理executeFetchRequest錯誤
- 4. 無法處理新線串
- 5. 無法處理SOAP響應
- 6. 無法處理酥料餅
- 7. expressjs - 無法處理請求
- 8. SpEL無法處理'é'?
- 9. 無法處理mysql_set_charset變量
- 10. MSP430無法處理雙
- 11. 無法處理「(」中,如果
- 12. SSIS無法處理DataCube
- 13. WCF:郵件無法處理:
- 14. Visual Studio無法處理維
- 15. python:json.dumps無法處理utf-8?
- 16. File.getCanonicalPath無法處理NTFS流?
- 17. strtotime()無法處理02/29?
- 18. JAXB無法處理接口
- 19. CMapStringToString無法處理Unicode?
- 20. Math.Pow無法處理負值
- 21. 無法與處理程序
- 22. 無法處理StackOverflowException C#
- 23. 無法處理linspace正確
- 24. PHP無法處理請求
- 25. 無法處理彈出框
- 26. Htc - 我無法處理keyevent
- 27. 無法處理jQuery.post響應()
- 28. 無法處理在JUNO文摘
- 29. 無法在Android回調中處理TextView
- 30. FQL:無法在Facebook端處理
請張貼一些代碼。您的問題沒有足夠的信息。 – Rayfleck 2011-04-20 13:34:32