Cocos2d with UITableview
Hi
I am trying to integrate an UITableviewto my cocos2d scene.
I can show my UITableview by adding a view that contains my tableview.
UITableView* tableview= [[[UITableView alloc] initWithFrame:winSize] autorelease];
....
.... //customize tableview and add to: UIView *view
[[Director sharedDirector] addSubview:view];
everything is fine by now
then i define datadelegate like this:
dataDelegate *dd=[[dataDelegate alloc] init]; //dataDelegate class comes with cocoslive so everything is fine.
tableview.delegate=dd;
But it doesnt trigger delegate events so my tableview is always empty..
Please someone share ideas or solutions, Thank you in advance
__________________
My Game(s)
iShark
Last edited by atsd; 01-11-2010 at 08:05 AM.
|