问候搜索后,我在我的代码有一些奇怪的问题...
我的代码是基于型号搜索(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