2011-03-09 4 views
0

(적인 Cocos2D 0.99.5 버전) 프로젝트는 다음 코드적인 Cocos2D에서 jQuery과 (행을 선택할 수 없습니다) 내적인 Cocos2D에서

tView = [[UIView alloc] initWithFrame:CGRectMake(-90,85,480,320)]; // ypo,xpos,width,height 
    CGAffineTransform tr = tView.transform; // get current transform (portrait) 
    tr = CGAffineTransformRotate(tr, (M_PI/2.0)); // rotate 90 degrees to go landscape 
    tView.transform = tr; // set current transform (landscape) 
    [[[CCDirector sharedDirector] openGLView] addSubview:tView]; 

로 UIView의 통합과 같은 tView하는 자식으로 jQuery과 추가 이

tTableView = [[UITableView alloc] initWithFrame:CGRectMake(0,50,480,320) 

                 style:UITableViewStylePlain]; 

tTableView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; 

tTableView.delegate = self; 

tTableView.dataSource = self; 

[tTableView reloadData]; 

[self.pView addSubview:tTableView]; 

UITableView가 올바르게 추가되었지만 tableview.it에서 행을 올바르게 선택할 수 없습니다. 이 문제를 해결하는 방법. 제안 좀 해주십시오

고마워요.

답변

1

다운로드 페이지와 예제 here을 사용하여 CCTableView Suite의 UITableView Cocos2D 버전을 살펴볼 수 있습니다. UIKit 뷰와 Cocos2D를 혼합하는 것보다 훨씬 효과적입니다.

관련 문제