我不知道有没有人使用过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)];
为了让这个工作正常运行,你遇到了什么? – jroyce