2012-04-09 4 views
0

내 프로젝트에서 Storyboard를 사용합니다. 나는 사용한 경우Storyboard : Custom UITableView

h.-File 내 코드 다음과 같습니다 단지 인터페이스 빌더에서 이러한 사용자 지정을 할 수있는 방법이

IImage * backgroundImage = [UIImage imageNamed:@"bg_image.png"]; 
UIImageView * backgroundView = [[UIImageView alloc] initWithImage:backgroundImage]; 
self.tableView.backgroundColor = [UIColor clearColor]; 
self.tableView.backgroundView = backgroundView; 
self.tableView.separatorColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.2]; 

있습니까?

아니겠습니까?

그래서 내 두 번째 질문은 내가 코드를 사용하는 경우, 내가 어떻게 Static cells 내가 인터페이스 빌더에서 만든 navigation segues을 유지할 수입니다 ? 대리자 메서드를 생략하면 난센스가됩니다.

모든 것을 함께 보낼 수 있습니까? 정적 셀, 탐색 섹스 및 사용자 정의 배경?

감사합니다.

답변

0

는 이봐 난 여기에 코드를 게시 할이 유

도움이되기를 바랍니다 - (무효) CreateTable에서 {

myTableView = [[jQuery과 ALLOC] initWithFrame : CGRectMake (0132, 320, 350) 스타일 : UITableViewStylePlain를 ];

myTableView.delegate=self; 
myTableView.dataSource=self; 
myTableView.backgroundColor=[UIColor clearColor]; 
myTableView.separatorColor=[UIColor clearColor]; 
myTableView.tag=2; 
[self.view addSubview:myTableView]; 
[myTableView release]; 

} 이제이 방법을 [self createTable]이라고 부릅니다.

+0

도움이되지 않습니다. 죄송합니다. – DAS