2011-09-29 4 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

관련 문제