开发者

Issues with SBTableAlert.. It shows the alert but not UITableView

开发者 https://www.devze.com 2023-04-09 03:36 出处:网络
I don\'t know if anyone has any experience with SBTableAlert. It looks awesome, but not much documentation.

I don't know if anyone has any experience with SBTableAlert. It looks awesome, but not much documentation.

It is also not calling any of the functions that UITableView would use. Can any one help with following code.

//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)];


In the above code you are not setting the datasource. This would be the obvious reason you're not getting what you are looking for, unless you set this later on.

0

精彩评论

暂无评论...
验证码 换一张
取 消