2011-09-29 89 views
1

我不知道有没有人使用过SBTableAlert。它看起来很棒,但没有太多的文档。SBTableAlert的问题。它显示警报但不显示UITableView

它也没有调用UITableView将使用的任何函数。任何人都可以帮助下面的代码。

//load the bookmarks and setup the popup 
SBTableAlert *bookmarkAlert; 

bookmarkAlert = [[SBTableAlert alloc] initWithTitle:@"Jump to:" cancelButtonTitle:@"Back" messageFormat:nil]; 
[bookmarkAlert setDelegate:self]; 
//[bookmarkAlert setDataSource:self]; 

NSString *settingsicon = [[NSBundle mainBundle] pathForResource:@"gear" ofType:@"png"]; 
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageWithContentsOfFile:settingsicon] style:UIBarButtonItemStylePlain target:bookmarkAlert action:@selector(show)]; 
+0

为了让这个工作正常运行,你遇到了什么? – jroyce

回答

0

在上面的代码,你不设置数据源。这将是你没有得到你想要的东西的明显原因,除非你稍后设置。

+0

我实际上不记得我做了什么来完成它的工作,但是在经过许多精力充沛的工作之后,我在一段时间之前完成了这个项目。 – Alienz

+0

是的,我也有一个“有趣”的时间。 – jroyce