我不知道有沒有人使用過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